google / google/gvisor

Drop IP unicast packets encapsulated in link-layer multi- or broadcast frames

Open
#1,086 0 comments 0 reactions 0 assignees View on GitHub
area: networking priority: p2 type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

[RFC 1122 3.3.6](https://tools.ietf.org/html/rfc1122#page-67) states:
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.

A host SHOULD silently discard a datagram that is received via
a link-layer broadcast but does not specify
an IP multicast or broadcast destination address.

Linux has this behavior turned off by default, and a user could turn it on using /proc/sys/net/ipv4/drop_unicast_in_l2_multicast. Link [sysctl variables](https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt)

gVisor doesn't handle the case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.