[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1366727277-19522-1-git-send-email-nicolas.dichtel@6wind.com>
Date: Tue, 23 Apr 2013 16:27:52 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net
Subject: [PATCH net-next 0/5] sock_diag: monitor packet sockets
The goal of this patchset is to be able to monitor packet sockets.
The two first patches add new attributes for packet_diag subsystem, so that all
information exported via the /proc/net/packet are also exported via netlink.
The third patch allows the user to get details about filter attached to a packet
socket.
Then, the two last one enable sockets monitoring. A netlink message is sent each
time a packet socket is created, deleted or when the filter information are
updated.
As usual, the patch against iproute2 will be sent once the patches are included and
net-next merged. I can send it on demand.
With this serie, the tools ss can monitor packet sockets activity.
include/linux/sock_diag.h | 4 +++
include/uapi/linux/packet_diag.h | 5 +++
include/uapi/linux/sock_diag.h | 13 +++++++-
net/core/filter.c | 3 ++
net/core/sock_diag.c | 68 ++++++++++++++++++++++++++++++++++++++++
net/packet/af_packet.c | 4 +++
net/packet/diag.c | 49 +++++++++++++++++++++++++----
7 files changed, 139 insertions(+), 7 deletions(-)
Comments are welcome.
Regards,
Nicolas
--
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