]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/arp.c
ARP: Remove ability to filter specific addresses
authorRoy Marples <roy@marples.name>
Fri, 15 May 2020 21:29:30 +0000 (22:29 +0100)
committerRoy Marples <roy@marples.name>
Fri, 15 May 2020 21:29:30 +0000 (22:29 +0100)
commitf55742151ec03f517471ab9a9724e5c1359fbc30
tree8d7b13fd95e9ca13d0be21ee964a76b31c455301
parente591578fa167bd838c8a0051eadf0a33062cbb06
ARP: Remove ability to filter specific addresses

This is only really needed for long lasting ARP, which is only
used for IPv4 address defence.
Modern NetBSD does not need this and it fails to work with
OpenBSD Pledge. FreeBSD Capsicum is more secure without this
as the BPF fd can then be locked for other changes [1].
That just leaves Linux and Solaris.

If anyone feels dhcpcd is processing to much ARP then please
implement RFC 5227 in the kernel like NetBSD.

[1] Locking the BPF fd is questionable because the inet proxy
using sendmsg can send any packet to any destination.
src/arp.c
src/arp.h
src/bpf.c
src/dhcp.c
src/privsep-bpf.c