]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
bpf: ARP and BOOTP filter improvements
authorRoy Marples <roy@marples.name>
Sun, 5 Mar 2017 21:05:24 +0000 (21:05 +0000)
committerRoy Marples <roy@marples.name>
Sun, 5 Mar 2017 21:05:24 +0000 (21:05 +0000)
commit334e3e70165eea3033f2ef6ffaf60997bef2c18a
treed9cbb215bafb75b22bdb1cb61debb22fcfa1e56e
parent167f23c885932a884d1c68befa30b1a7c52a165f
bpf: ARP and BOOTP filter improvements

The ARP filter now checks hardware and protocol length matches
the interface, it's not from the interface itself and either the
source ip or target ip is one of our addresses of interest.

The BOOTP filter now checks for BOOTREPLY and matching xid.
If the interface hardware address fits inside chaddr then
that is checked as well.
arp.c
bpf-filter.h [deleted file]
bpf.c [new file with mode: 0644]
configure
dhcp.c
dhcp.h
if-bsd.c
if-linux.c
if.h