summaryrefslogtreecommitdiffstats
path: root/include/linux/unix_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-15 02:45:24 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-16 13:48:28 -0500
commitf5248b48a64c221dd6157ab9cbee5a36ee45e6ed (patch)
treef03c84d11417f77827060f48e1bf09435a28c25b /include/linux/unix_diag.h
parent5d3cae8bc39dd38d1aa5fd4bbc788c7b43fcaa71 (diff)
unix_diag: Unix socket name NLA
Report the sun_path when requested as NLA. With leading '\0' if present but without the leading AF_UNIX bits. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/unix_diag.h b/include/linux/unix_diag.h
index 445184a8576..cc4df34d4c1 100644
--- a/include/linux/unix_diag.h
+++ b/include/linux/unix_diag.h
@@ -11,6 +11,8 @@ struct unix_diag_req {
__u32 udiag_cookie[2];
};
+#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
+
struct unix_diag_msg {
__u8 udiag_family;
__u8 udiag_type;
@@ -21,4 +23,10 @@ struct unix_diag_msg {
__u32 udiag_cookie[2];
};
+enum {
+ UNIX_DIAG_NAME,
+
+ UNIX_DIAG_MAX,
+};
+
#endif