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
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
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
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
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
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
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