CVS log entries from 28.06.2005 (Tue) 09:07:04 - 29.06.2005 (Wed) 09:07:04 GMT ===================================================== Summary by authors ===================================================== Author: guy File: libpcap/fad-gifc.c; Revisions: 1.11, 1.8.2.2 File: libpcap/configure; Revisions: 1.68, 1.60.2.8
===================================================== Combined list of identical log entries ===================================================== Description: Checking whether the amount of data returned by SIOCGIFCONF is less than the size of the buffer we handed to it is insufficient to determine whether we have the entire list of interfaces or not - if the amount of space left in the buffer after adding an entry is non-zero but less than the amount of space required by the next entry, the ioctl will stop before adding the next entry, and not necessarily return an error. The only way to ensure that we got all the data is to pass a buffer large enough that the amount of space in the buffer *not* filled in is greater than the largest possible entry. We assume that's "sizeof(ifreq.ifr_name)" plus 255, under the assumption that no address is more than 255 bytes (on systems where the "sa_len" field in a "struct sockaddr" is 1 byte, e.g. newer BSDs, that's the case, and addresses are unlikely to be bigger than that in any case). Modified files: File: libpcap/fad-gifc.c; Revision: 1.11; Date: 2005/06/29 06:41:39; Author: guy; Lines: (+28 -5) File: libpcap/fad-gifc.c; Revision: 1.8.2.2; Date: 2005/06/29 06:43:31; Author: guy; Lines: (+28 -5) ------------------------------- Description: Rebuild with autoconf 2.57, to minimize changes. Modified files: File: libpcap/configure; Revision: 1.68; Date: 2005/06/29 06:48:06; Author: guy; Lines: (+442 -970) File: libpcap/configure; Revision: 1.60.2.8; Date: 2005/06/29 06:49:39; Author: guy; Lines: (+442 -970) ===================================================== Log entries ===================================================== ===================================================== Summary of modified files ===================================================== File: libpcap/configure Revisions: 1.68, 1.60.2.8 Authors: guy (+442 -970), guy (+442 -970) ------------------------------- File: libpcap/fad-gifc.c Revisions: 1.11, 1.8.2.2 Authors: guy (+28 -5), guy (+28 -5) -- Automatic cron job from /tcpdump/bin/makelog - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.