Thread (39 messages) 39 messages, 4 authors, 2013-05-22

Re: [PATCH net-next v3] sock_diag: notify packet socket creation/deletion

From: Nicolas Dichtel <hidden>
Date: 2013-05-22 11:49:07

Le 21/05/2013 20:43, David Miller a écrit :
From: Nicolas Dichtel <redacted>
Date: Tue, 21 May 2013 17:14:50 +0200
quoted
Le 20/05/2013 08:29, David Miller a écrit :
quoted
From: Nicolas Dichtel <redacted>
Date: Fri, 17 May 2013 16:25:38 +0200
quoted
With this patch, a netlink message is sent each time a packet socket
is created or deleted.  The framework is generic, so it's easy to
add the notification for other kind of sockets.

Signed-off-by: Nicolas Dichtel <redacted>
Just curious what you want to use this for.
Some HW (custom FPGA, ASICs, NPUs) are able to offload packet
captures, so it is required to notify them.
I don't even want to hear about this until you have patches ready
to submit to fully support such a facility.
Not sure to understand what you're expecting. In our case, configuration is done 
by a daemon, hence there is no other kernel patch to support this.

Note that this patch is still a complete feature, it allows to monitor AF_PACKET 
socket.
With a patched iproute2:

$ ss -ap0e -M
     Netid  State      Recv-Q Send-Q 
        Local Address:Port 
  Peer Address:Port
     p_dgr  UNCONN     0      0 
                    *:* 
              *        users:(("tcpdump",8630,3)) ino=29477 uid=0 sk=f53fbc00
del p_dgr  UNCONN     0      0 
                   *:* 
             *        users:(("tcpdump",8630,3)) ino=29477 uid=0 sk=f53fbc00

Will you accept the patch if I integrate the example in the commit log?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help