Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Daniel Borkmann
On 05/05/2015 08:53 PM, Vadim Kochan wrote: ... OK, seems this approach fixes the issue, also I checked that all callers of pf_socket uses bind_generic or ring_{rx,tx}_setup which does a bind a socket to a device/proto packet handler: astraceroute.c:893: static int main_trace(struct

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Vadim Kochan
On Tue, May 05, 2015 at 04:39:51PM +0200, Daniel Borkmann wrote: > On 05/05/2015 12:10 PM, Daniel Borkmann wrote: > >On 05/05/2015 11:26 AM, Tobias Klauser wrote: > >>On 2015-05-02 at 22:54:50 +0200, Vadim Kochan wrote: > >>>On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: > On

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Vadim Kochan
On Tue, May 05, 2015 at 04:39:51PM +0200, Daniel Borkmann wrote: > On 05/05/2015 12:10 PM, Daniel Borkmann wrote: > >On 05/05/2015 11:26 AM, Tobias Klauser wrote: > >>On 2015-05-02 at 22:54:50 +0200, Vadim Kochan wrote: > >>>On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: > On

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Daniel Borkmann
On 05/05/2015 12:10 PM, Daniel Borkmann wrote: On 05/05/2015 11:26 AM, Tobias Klauser wrote: On 2015-05-02 at 22:54:50 +0200, Vadim Kochan wrote: On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: On 2015-04-29 at 21:18:24 +0200, Vadim Kochan wrote: From: Vadim Kochan It migh

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Daniel Borkmann
On 05/05/2015 11:26 AM, Tobias Klauser wrote: On 2015-05-02 at 22:54:50 +0200, Vadim Kochan wrote: On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: On 2015-04-29 at 21:18:24 +0200, Vadim Kochan wrote: From: Vadim Kochan It might be related to the issue #73 noticed by

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-05 Thread Tobias Klauser
On 2015-05-02 at 22:54:50 +0200, Vadim Kochan wrote: > On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: > > On 2015-04-29 at 21:18:24 +0200, Vadim Kochan wrote: > > > From: Vadim Kochan > > > > > > It might be related to the issue #73 noticed by > > > > > > Jon Schipp > > >

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-03 Thread Vadim Kochan
On Sat, May 02, 2015 at 07:00:53PM +0200, Tobias Klauser wrote: > On 2015-04-29 at 21:18:24 +0200, Vadim Kochan wrote: > > From: Vadim Kochan > > > > It might be related to the issue #73 noticed by > > > > Jon Schipp > > > > where he pointed that netsniff-ng captures some extra packets. >

Re: [netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-05-02 Thread Tobias Klauser
On 2015-04-29 at 21:18:24 +0200, Vadim Kochan wrote: > From: Vadim Kochan > > It might be related to the issue #73 noticed by > > Jon Schipp > > where he pointed that netsniff-ng captures some extra packets. > > I observed this issue when I captured few Ethernet frames from > wireless

[netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-04-29 Thread Vadim Kochan
From: Vadim Kochan It might be related to the issue #73 noticed by Jon Schipp where he pointed that netsniff-ng captures some extra packets. I observed this issue when I captured few Ethernet frames from wireless device while I was sniffing Netlink monitor device (!!!), especially und

[netsniff-ng] [PATCH] netsniff-ng: Fix capturing extra packets from other dev

2015-04-29 Thread Vadim Kochan
From: Vadim Kochan It might be related to the issue #73 noticed by Jon Schipp where he pointed that netsniff-ng captures some extra packets. I observed this issue when I captured few Ethernet frames from wireless device while I was sniffing Netlink monitor device (!!!), especially und