Re: [PATCH v2 2/3] Packet sniffer core framework

2015-02-18 Thread Daniel Borkmann
On 02/17/2015 03:03 PM, Stathis Voukelatos wrote: The framework registers each backend sniffer channel as a netdev, which can be accessed from user space through a raw packet socket. Packets received from user space are treated as a command string configuration. Each match event from the backend

Re: [PATCH v2 2/3] Packet sniffer core framework

2015-02-18 Thread Stathis Voukelatos
Hi Daniel, On 18/02/15 15:42, Daniel Borkmann wrote: This whole framework really looks like only tailored to your specific driver, I have no idea who else should reuse that?! So, I don't think putting this under drivers/net/pkt-sniffer/ is a good idea. Yes, it is not necessarilly expected to

[PATCH v2 2/3] Packet sniffer core framework

2015-02-17 Thread Stathis Voukelatos
The framework registers each backend sniffer channel as a netdev, which can be accessed from user space through a raw packet socket. Packets received from user space are treated as a command string configuration. Each match event from the backend driver will generate a packet with the matching byte