summaryrefslogtreecommitdiff
path: root/include/linux/unix_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-15 06:45:58 +0400
committerDavid S. Miller <davem@davemloft.net>2011-12-16 22:48:28 +0400
commitac02be8d96af9f66a4de86781ee9facc2dff99d4 (patch)
treef9a7ef71f50d5bda679f8603cbfa53c0d4092df4 /include/linux/unix_diag.h
parent5f7b0569460b7d8d01ca776430a00505a68b7584 (diff)
downloadlinux-ac02be8d96af9f66a4de86781ee9facc2dff99d4.tar.xz
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 {
#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
+#define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
struct unix_diag_msg {
__u8 udiag_family;
@@ -27,6 +28,7 @@ struct unix_diag_msg {
enum {
UNIX_DIAG_NAME,
UNIX_DIAG_VFS,
+ UNIX_DIAG_PEER,
UNIX_DIAG_MAX,
};