CVS log entries from 23.08.2001 (Thu) 09:05:41 - 24.08.2001 (Fri) 09:05:32 GMT
=====================================================
Summary by authors
=====================================================
Author: guy
        File: libpcap/pcap-int.h; Revisions: 1.33
        File: libpcap/pcap-linux.c; Revisions: 1.63, 1.62

=====================================================
Combined list of identical log entries
=====================================================
Description:
Define MSG_TRUNC as 0x20 if it's not defined, so that if this is
compiled on a system that doesn't have it, it'll use it on systems that
do have it.

On systems with MSG_TRUNC support (i.e., 2.2 and later kernels), there's
no need to read in the entire packet in order to find out how large it
is, so just allocate a buffer big enough for a snapshot length's worth
of data, and just read that much data.

There's no need for a "readlen" member of the "pcap_md" structure, as
the byte count to "recvfrom()" is just the "bufsize" member of the
"pcap_t" structure.
Modified files:
        File: libpcap/pcap-int.h; Revision: 1.33;
        Date: 2001/08/24 07:46:52; Author: guy; Lines: (+1 -2)
        File: libpcap/pcap-linux.c; Revision: 1.63;
        Date: 2001/08/24 07:46:53; Author: guy; Lines: (+74 -35)
=====================================================
Log entries
=====================================================
Description:
Move the code to allocate the packet buffer into "pcap_open_live()", so
that we don't have almost-duplicate code in "live_open_old()" and
"live_open_new()".  This fixes a bug wherein "live_open_new()" wasn't
making the buffer size the maximum of "enough to hold packets of the MTU
obtained from the socket" and "the snapshot length" (for some reason,
"recvfrom()" was copying more data than the MTU obtained from the
socket).
Modified files:
        File: libpcap/pcap-linux.c; Revision: 1.62;
        Date: 2001/08/23 16:36:41; Author: guy; Lines:  (+87 -90)
=====================================================
Summary of modified files
=====================================================
File: libpcap/pcap-int.h
Revisions: 1.33
Authors: guy (+1 -2)
-------------------------------
File: libpcap/pcap-linux.c
Revisions: 1.63, 1.62
Authors: guy (+74 -35), guy (+87 -90)
-- 
Automatic cron job from /tcpdump/bin/makelog
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to