tcpdump mailing list archives

[bug] [libpcap] pcap-linux.c: PACKET_MMAP: caplen < len <= snaplen.


From: julm+tcpdump () savines alpes fr eu org
Date: Wed, 23 Mar 2011 04:47:56 +0100

Hi there,

following is a patch trying to fix the bug described here:
http://article.gmane.org/gmane.network.tcpdump.devel/4968
plus another patch FYI only which helped me to debug.

read the comments to know more.

you may also retrieve the patches with:
        % git fetch git://195.88.84.18/~julm/libpcap.git \
         '+refs/heads/julm/master:refs/remotes/julm/master'

feel free to overhaul/merge the fix.
julm

[PATCH 1/2] Fix: pcap-linux.c: create_ring(): calibrate req.tp_frame_size as in tpacket_rcv() (almost).
[PATCH 2/2] Debug: pcap-linux.c: fprintf() values related to req.tp_frame_size.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: