tcpdump mailing list archives

Re: pcap-dlpi.c patch for 1.0.0


From: Guy Harris <guy () alum mit edu>
Date: Tue, 2 Dec 2008 09:38:54 -0800


On Dec 1, 2008, at 9:08 AM, Albert Chin wrote:

pcap-dlpi.c in pcap_activate_dlpi() conditionalizes the `ss' variable:
 #ifdef HAVE_SYS_BUFMOD_H
   bpf_u_int32 ss;
but then uses it unconditionalized:
 ss = p->snapshot;

Patch attached.

Checked into the main and 1.0 branches (with an additional change to just wrap all the code that handles bufmod in a single #ifdef HAVE_SYS_BUFMOD_H/#endif).
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: