syzkaller/sys
Dmitry Vyukov b97f1e694a sys/linux: add broadcast mac address
Code in net/ethernet/eth.c does this:

__be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev)
{
...
	if (unlikely(!ether_addr_equal_64bits(eth->h_dest,
					      dev->dev_addr))) {
		if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) {
			if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
				skb->pkt_type = PACKET_BROADCAST;
			else
				skb->pkt_type = PACKET_MULTICAST;
		} else {
			skb->pkt_type = PACKET_OTHERHOST;
		}
	}

Multicast and broadcast are distinct and dev->broadcast seems to be ffffffffffff
by default, so add another multicast mac address that will serve as PACKET_MULTICAST.
2020-02-18 10:31:02 +01:00
..
akaros prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
android sys/linux: add ion and ashmem devices support 2018-01-09 21:24:28 +01:00
freebsd prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
fuchsia prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
linux sys/linux: add broadcast mac address 2020-02-18 10:31:02 +01:00
netbsd prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
openbsd prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
syz-extract sys/syz-extract: print less output 2019-12-18 10:50:21 +01:00
syz-sysgen tools/syz-check: inject description compilation warnings 2019-12-20 16:45:34 +01:00
targets sys/linux: fix int64 alignment on 386 2019-12-23 08:57:42 +01:00
test prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
trusty pkg/serializer: do not write field names if it won't save space 2020-01-26 11:07:18 +01:00
windows prog: remove unused ResourceDesc.Type 2020-01-26 11:30:18 +01:00
sys.go dashboard/app: properly handle build failures 2019-03-25 17:00:25 +01:00