[tcpdump-workers] [PATCH 03/04]: pcap-linux: support new tpacket frame header format

2008-07-18 Thread Patrick McHardy
pcap-linux: support new tpacket frame header format From: Patrick McHardy <[EMAIL PROTECTED]> The tpacket_hdr is not clean for 64 bit kernel/32 bit userspace and is not extendable because the struct sockaddr_ll following it is expected at a fixed offset. Linux 2.6.27-rc supports a new t

[tcpdump-workers] [PATCH 02/04]: pcap-linux: reconstruct VLAN header from PACKET_AUXDATA

2008-07-18 Thread Patrick McHardy
pcap-linux: reconstruct VLAN header from PACKET_AUXDATA From: Patrick McHardy <[EMAIL PROTECTED]> VLAN packets sent over devices supporting VLAN tagging/stripping in hardwaredon't have a VLAN header when they are received on packet sockets. The VLAN TCI is available through the PAC

[tcpdump-workers] [PATCH 04/04]: pcap-linux: reconstruct VLAN headers from tpacket2_hdr

2008-07-18 Thread Patrick McHardy
pcap-linux: reconstruct VLAN headers from tpacket2_hdr From: Patrick McHardy <[EMAIL PROTECTED]> Similar to PACKET_AUXDATA for non-mmaped sockets, the VLAN TCI is present in a new member of struct tpacket2_hdr. Use it to reconstruct the VLAN header when necessary. --- pcap-linux.c

[tcpdump-workers] [PATCH 01/04]: pcap-linux: convert to recvmsg()

2008-07-18 Thread Patrick McHardy
pcap-linux: convert to recvmsg() From: Patrick McHardy <[EMAIL PROTECTED]> Convert pcap-linux to use recvmsg() as preparation for using PACKET_AUXDATA cmsgs. --- pcap-linux.c | 23 --- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/pcap-linux.c

[tcpdump-workers] [PATCH 00/04]: libpcap: VLAN acceleration support

2008-07-18 Thread Patrick McHardy
Currently libpcap can't properly deal with VLAN packets tagged or stripped by the hardware. On RX the packets are simply not visible at all (this is a pure kernel problem though), on TX without the VLAN tag. The upcoming kernel version (2.6.27) will preserve the tag on RX (its already present in

[tcpdump-workers] [PATCH]: pcap-linux: fix invalid rcvbuf size

2008-07-18 Thread Patrick McHardy
Please keep me CCed since I'm not subscribed to the list. commit 6f5556e515578c3e034b176562633987e85782e5 Author: Patrick McHardy <[EMAIL PROTECTED]> Date: Fri Jul 18 19:22:52 2008 +0200 pcap-linux: fix invalid rcvbuf size Libpcap issues a SO_RCVBUF when the buf

[tcpdump-workers] [PATCH]: libpcap: VLAN acceleration support

2008-07-16 Thread Patrick McHardy
Currently libpcap can't properly deal with VLAN packets tagged or stripped by the hardware. On RX the packets are simply not visible at all (this is a pure kernel problem though), on TX without the VLAN tag. The upcoming kernel version (2.6.27) will preserve the tag on RX (its already present in