Tweak parameters to decode_*, add a check or two, and thus gain most of the
authorkrw <krw@openbsd.org>
Tue, 18 Apr 2017 13:59:09 +0000 (13:59 +0000)
committerkrw <krw@openbsd.org>
Tue, 18 Apr 2017 13:59:09 +0000 (13:59 +0000)
commit6c731dee736c1100b3d6ed614f8be740f786c335
tree86e6fb7c533e74ef0065e735c07dadf62323ce75
parent65807c88861cb1504e54b09426f39cf2d5e4b301
Tweak parameters to decode_*, add a check or two, and thus gain most of the
sanity improvements reyk@ recently put into dhcrelay to ensure no more than
the captured packet is processed.
sbin/dhclient/bpf.c
sbin/dhclient/dhcpd.h
sbin/dhclient/packet.c
usr.sbin/dhcpd/bpf.c
usr.sbin/dhcpd/dhcpd.h
usr.sbin/dhcpd/packet.c