freebsd-skq/sbin/dhclient
brooks ba54a678f6 Allocate a struct ifreq rather than using a (wrong) computed size for
the BIOCSETIF ioctl.

The kernel always copies an entire struct ifreq and IPv4 addresses will
always fit in an ifreq.

On systems with pointers larger than 64-bits, the computed size will be
less than the size of struct ifreq, potentially resulting in the kernel
attempting to copyin memory from outside the allocation.

Reviewed by:	jhb
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D8445
2016-11-22 22:45:15 +00:00
..
tests
alloc.c
bpf.c
clparse.c
conflex.c
convert.c
dhclient-script
dhclient-script.8
dhclient.8
dhclient.c
dhclient.conf
dhclient.conf.5
dhclient.leases.5
dhcp-options.5
dhcp.h Support domain-search in dhclient(8) 2011-12-04 14:44:31 +00:00
dhcpd.h
dhctoken.h
dispatch.c
errwarn.c
hash.c
inet.c
Makefile
Makefile.depend
options.c
packet.c
parse.c
privsep.c
privsep.h
tables.c
tree.c
tree.h