From c66991ad7de68fd629a1620acad0c8eec2744bac Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Thu, 16 Jul 2020 12:25:02 -0700 Subject: Add ethernet broadcast address constant PiperOrigin-RevId: 321620517 --- pkg/tcpip/header/eth.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/tcpip/header') diff --git a/pkg/tcpip/header/eth.go b/pkg/tcpip/header/eth.go index b1e92d2d7..eaface8cb 100644 --- a/pkg/tcpip/header/eth.go +++ b/pkg/tcpip/header/eth.go @@ -53,6 +53,10 @@ const ( // (all bits set to 0). unspecifiedEthernetAddress = tcpip.LinkAddress("\x00\x00\x00\x00\x00\x00") + // EthernetBroadcastAddress is an ethernet address that addresses every node + // on a local link. + EthernetBroadcastAddress = tcpip.LinkAddress("\xff\xff\xff\xff\xff\xff") + // unicastMulticastFlagMask is the mask of the least significant bit in // the first octet (in network byte order) of an ethernet address that // determines whether the ethernet address is a unicast or multicast. If -- cgit v1.2.3