-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not send ICMPv4 responses to broadcasts
- Do not send ICMPv4 responses for packets with a broadcast destination address. - Do not send DstUnreachable with ProtoUnreachable on receipt of a packet with an unknown protocol with a non-unicast destination address. - Do not send DstUnreachable with PortUnreachable on receipt of a UDP packet when no sockets are listening on the destination port and the destination address is a non-unicast address. - Send the correct amount of the original datagram when sending Destination Unreachable error responses. - Do not assume that a ip datagram has a payload when sending a proto unreachable ICMPv4 error response. - Add tests to iface tests. - Ensure ICMP error responses are correctly formed when the datagram has no payload. - Ensure ICMP error responses are correctly handled for UDP packets when no socket is listening on the destination port. - Ensure the correct amount of the original payload is returned in Destination Unreachable responses.
1 parent
0091191
commit d1d80ca
Showing
1 changed file
with
177 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters