Subject: CVS commit: src/dist/dhcp/common
To: None <source-changes@NetBSD.org>
From: Greg Troxel <email@example.com>
Date: 09/13/2007 11:56:42
Module Name: src
Committed By: gdt
Date: Thu Sep 13 11:56:41 UTC 2007
Follow NetBSD's interpretation of the interface to SIOCGIFCONF: the
next ifreq is sizeof(struct ifreq) after the current one unless the
sockaddr is bigger than the union in ifreq that holds it.
In the original 4.4BSD code, this interpretation results in the same
behavior as the "is the sockaddr bigger than struct sockaddr", because
sizeof(struct sockaddr) and sizeof(ifc->ifr_ifru) are the same.
Add comments pointing out problems in the 'need bigger buffer' code,
and copying excessive amounts of data.
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/dist/dhcp/common/discover.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.