-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Describe the bug
When Zephyr is configured to IP address 192.168.2.166 with netmask 255.255.255.0, it will try to send ICMP port unreachable packets for broadcast packets sent to 192.168.17.255 by other computers in the same ethernet broadcast domain using 192.168.17.255 as sender IP address.
There is a check in ethernet_recv that drops all unicast packets not destined for the board, but packets with broadcast and multicast L2 address are alwas accepted. The next check is in net_conn_input, where packets are forwarded to the callbacks of the connections. The remaining IP packets are silently dropped if they are multicast packets. But other packets (this includes broadcast packets of other subnets) are rejected with send_icmp_error.
Expected behavior
Zephyr should never reply with an ICMP port unreachable packet to packets with a destination IP address that it does not own.
Impact
annoyance
Environment (please complete the following information):
- Commit SHA d910aa6