gvisor/pkg/tcpip/transport
gVisor bot 5df3a8fede Discard multicast UDP source address.
RFC-1122 (and others) specify that UDP should not receive
datagrams that have a source address that is a multicast address.
Packets should never be received FROM a multicast address.
See also, RFC 768:  'User Datagram Protocol'
J. Postel, ISI, 28 August 1980
  A UDP datagram received with an invalid IP source address
    (e.g., a broadcast or multicast address) must be discarded
    by UDP or by the IP layer (see rfc 1122 Section 3.2.1.3).
This CL does not address TCP or broadcast which is more complicated.

Also adds a test for both ipv6 and ipv4 UDP.

Fixes #3154

PiperOrigin-RevId: 320547674
2020-07-09 22:35:42 -07:00
..
icmp icmp: When setting TransportHeader, remove from the Data portion. 2020-07-07 15:56:46 -07:00
packet Add support for SO_RCVBUF/SO_SNDBUF for AF_PACKET sockets. 2020-07-06 17:22:54 -07:00
raw Add support for IP_HDRINCL IP option for raw sockets. 2020-07-09 16:25:57 -07:00
tcp Set IPv4 ID on all non-atomic datagrams 2020-07-07 16:14:49 -07:00
tcpconntrack Support for connection tracking of TCP packets. 2020-05-01 16:59:40 -07:00
udp Discard multicast UDP source address. 2020-07-09 22:35:42 -07:00