Narrow the BPF read filter rules so only packets sent to the
authorkrw <krw@openbsd.org>
Tue, 19 Jul 2016 17:23:20 +0000 (17:23 +0000)
committerkrw <krw@openbsd.org>
Tue, 19 Jul 2016 17:23:20 +0000 (17:23 +0000)
commit30a950ed5a15b6236a6c479284fbe26ee3605026
tree8d5d596f4ec51d68695be80e0cb967e3cd680881
parenta1487b8e3a45fb546c23b76e6c2d628c3fb7e511
Narrow the BPF read filter rules so only packets sent to the
interface's LLADDR pass. Rely on dhclient's existing ability to
detect and react to LLADDR changes.

This limits the number of packets that get dropped as a result of
dhclient setting BIOCSFILDROP on the bpf descriptor.

Problem with bridges and multiple dhclients noted by stsp@.

ok mpi@ stsp@ deraadt@ henning@
sbin/dhclient/bpf.c
sbin/dhclient/dhclient.c