Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv4.ARP.019: udp.ipv4: ARP Request with Hardware and Protocol Sender Address set to broadcast. fail #1369

Open
hakehuang opened this issue Sep 16, 2022 · 1 comment

Comments

@hakehuang
Copy link
Contributor

  • Describe the bug

ARP Request with Hardware and Protocol Sender Address set to broadcast. fail

  • References

RFC 826: page 4
RFC 1122: section 3.3.6 {Silently discard link-layer-only b'cast dg's}
RFC 1812: section 3.3.2, page 34

With the Protocol Sender Address set to 255.255.255.255 broadcast address, the ARP Request has its Hardware Sender Address set to the Ethernet broadcast address of FF-FF-FF-FF-FF-FF.

According to RFC 1122, section 3.3.6, page 65: "When a host sends a datagram to a link-layer broadcast address, the IP destination address MUST be a legal IP broadcast or IP multicast address."

According to RFC 1812, section 3.3.2, page 34: "A router MUST not believe any ARP reply that claims that the Link Layer address of another host or router is a broadcast or multicast address."

In order to stay conformant to those requirements, the Ethernet broadcast address must never appear in the ARP translation table with a unicast IPv4 address.  In this case an IPv4 broadcast address is paired with an Ethernet broadcast address, so an entry could be allowed into the ARP translation table without any apparent affect on address resolution or violation of known RFC requirements.  DUT may add an entry to its arp cache but otherwise may not respond.
  • Results

b'FAIL: udp.v4 DUT sent an ARP reply, which is not expected.'

Environment (please complete the following information):

OS: (e.g. Linux )
Toolchain (e.g Zephyr SDK)
Commit SHA or Version used: Zephyr3.2.0-RC1

@hakehuang
Copy link
Contributor Author

ip_arp_019_ipv4_tcp.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant