[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <519CB0AF.5090907@6wind.com>
Date: Wed, 22 May 2013 13:49:03 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: David Miller <davem@...emloft.net>
CC: xiyou.wangcong@...il.com, eric.dumazet@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next v3] sock_diag: notify packet socket creation/deletion
Le 21/05/2013 20:43, David Miller a écrit :
> From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
> Date: Tue, 21 May 2013 17:14:50 +0200
>
>> Le 20/05/2013 08:29, David Miller a écrit :
>>> From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
>>> Date: Fri, 17 May 2013 16:25:38 +0200
>>>
>>>> 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 <nicolas.dichtel@...nd.com>
>>>
>>> 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?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists