]> git.baikalelectronics.ru Git - kernel.git/commit
packet: Diag core and basic socket info dumping
authorPavel Emelyanov <xemul@parallels.com>
Mon, 13 Aug 2012 05:53:28 +0000 (05:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2012 23:56:33 +0000 (16:56 -0700)
commitde26bd48f2c4fd3fc09d007eb3f4986016c2b9d7
tree1c2e914c7bbd573db850f2cf340b2e49226df8a0
parentd8aaaae0bd6674e5b3e629bda5a064e7b27a4f8b
packet: Diag core and basic socket info dumping

The diag module can be built independently from the af_packet.ko one,
just like it's done in unix sockets.

The core dumping message carries the info available at socket creation
time, i.e. family, type and protocol (in the same byte order as shown in
the proc file).

The socket inode number and cookie is reserved for future per-socket info
retrieving. The per-protocol filtering is also reserved for future by
requiring the sdiag_protocol to be zero.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/Kbuild
include/linux/packet_diag.h [new file with mode: 0644]
net/packet/Kconfig
net/packet/Makefile
net/packet/diag.c [new file with mode: 0644]