Tue, Nov 29, 2011 at 09:35:00PM CET, nicolas.2p.deb...@gmail.com wrote:
>Le 29/11/2011 14:38, Thomas De Schampheleire a écrit :
>>Hi,
>>
>>I'm seeing incorrect tcpdump output in the following scenario:
>>
>>* ethernet bonding enabled in the kernel, and a single network
>>interface (eth0) added as s
Sat, Mar 06, 2010 at 10:23:12PM CET, g...@alum.mit.edu wrote:
>
>On Mar 2, 2010, at 5:00 PM, Pavel Roskin wrote:
>
>> This patch to libpcap helps:
>>
>> --- a/pcap-linux.c
>> +++ b/pcap-linux.c
>> @@ -1563,6 +1563,7 @@ live_open_new(pcap_t *handle, const char
>> memset(&mr, 0,
--
>> From: tcpdump-workers-ow...@lists.tcpdump.org [mailto:tcpdump-workers-
>> ow...@lists.tcpdump.org] On Behalf Of Pavel Roskin
>> Sent: Tuesday, March 02, 2010 6:01 PM
>> To: linux-wirel...@vger.kernel.org; net...@vger.kernel.org; tcpdump-
>> work...@lists.tcpdump.org
>
e strict check to the point
>in path where the addr_len must be set correctly.
>
>Signed-off-by: Jiri Pirko
>
>diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
>index 031a5e6..1612d41 100644
>--- a/net/packet/af_packet.c
>+++ b/net/packet/af_packet.c
>@@ -1
it stays zeroed) in case of setting
PACKET_MR_PROMISC or PACKET_MR_ALLMULTI. So move the strict check to the point
in path where the addr_len must be set correctly.
Signed-off-by: Jiri Pirko
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 031a5e6..1612d41 100644
--- a/net
ROMISC;
>+ mr.mr_alen= 6;
> if (setsockopt(sock_fd, SOL_PACKET,
> PACKET_ADD_MEMBERSHIP, &mr, sizeof(mr)) == -1)
> {
>
>libpcap git doesn't have the fix yet.
>
>The breakag