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

2015-02-24 Thread Stathis Voukelatos
On 23/02/15 21:37, David Miller wrote: From: Stathis Voukelatos Date: Mon, 23 Feb 2015 14:26:21 + + spin_lock_irqsave(&priv->lock, flags); + /* Stop the hardware */ + sch->stop(sch); + /* Set the new command pattern */ + ret = sch->set_pattern(sch, skb->data

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

2015-02-23 Thread David Miller
From: Stathis Voukelatos Date: Mon, 23 Feb 2015 14:26:21 + > + spin_lock_irqsave(&priv->lock, flags); > + /* Stop the hardware */ > + sch->stop(sch); > + /* Set the new command pattern */ > + ret = sch->set_pattern(sch, skb->data, skb->len / 2); > + /* Restart the hard

[PATCH v3 2/3] Packet sniffer core framework

2015-02-23 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