aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/unix_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-14 21:45:58 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-16 13:48:28 -0500
commitac02be8d96af9f66a4de86781ee9facc2dff99d4 (patch)
treef9a7ef71f50d5bda679f8603cbfa53c0d4092df4 /include/linux/unix_diag.h
parent5f7b0569460b7d8d01ca776430a00505a68b7584 (diff)
unix_diag: Unix peer inode NLA
Report the peer socket inode ID as NLA. With this it's finally possible to find out the other end of an interesting unix connection. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/unix_diag.h')
-rw-r--r--include/linux/unix_diag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/unix_diag.h b/include/linux/unix_diag.h
index 3e53adbe9c7f..2d74a86024ac 100644
--- a/include/linux/unix_diag.h
+++ b/include/linux/unix_diag.h
@@ -13,6 +13,7 @@ struct unix_diag_req {
13 13
14#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */ 14#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
15#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */ 15#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
16#define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
16 17
17struct unix_diag_msg { 18struct unix_diag_msg {
18 __u8 udiag_family; 19 __u8 udiag_family;
@@ -27,6 +28,7 @@ struct unix_diag_msg {
27enum { 28enum {
28 UNIX_DIAG_NAME, 29 UNIX_DIAG_NAME,
29 UNIX_DIAG_VFS, 30 UNIX_DIAG_VFS,
31 UNIX_DIAG_PEER,
30 32
31 UNIX_DIAG_MAX, 33 UNIX_DIAG_MAX,
32}; 34};