gvisor/pkg/tcpip
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
..
adapters/gonet Drop flaky tag. 2020-06-05 16:39:08 -07:00
buffer Fix view.ToVectorisedView(). 2020-05-11 10:35:28 -07:00
checker Implement SO_NO_CHECK socket option. 2020-06-26 17:51:04 -07:00
hash/jenkins Standardize on tools directory. 2020-01-27 12:21:00 -08:00
header netstack: parse incoming packet headers up-front 2020-06-07 13:38:43 -07:00
link Fix NonBlockingWrite3 not writing b3 if b2 is zero-length. 2020-07-06 16:47:37 -07:00
network Set IPv4 ID on all non-atomic datagrams 2020-07-07 16:14:49 -07:00
ports Add support for SO_REUSEADDR to TCP sockets/endpoints. 2020-06-23 19:15:38 -07:00
sample Standardize on tools directory. 2020-01-27 12:21:00 -08:00
seqnum Don't accept segments outside the receive window 2020-04-19 22:16:14 -07:00
stack icmp: When setting TransportHeader, remove from the Data portion. 2020-07-07 15:56:46 -07:00
transport Discard multicast UDP source address. 2020-07-09 22:35:42 -07:00
BUILD Move tcpip.PacketBuffer and IPTables to stack package. 2020-03-24 09:06:26 -07:00
tcpip.go Discard multicast UDP source address. 2020-07-09 22:35:42 -07:00
tcpip_test.go Fix all printf formatting errors. 2020-04-08 10:14:34 -07:00
time.s Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
time_unsafe.go Update Go version build tags 2020-05-29 15:44:07 -07:00
timer.go Do not copy tcpip.CancellableTimer 2020-04-24 12:46:56 -07:00
timer_test.go Do not copy tcpip.CancellableTimer 2020-04-24 12:46:56 -07:00