aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/unix_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-14 21:45:24 -0500
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 445184a85763..cc4df34d4c14 100644
--- a/include/linux/unix_diag.h
+++ b/include/linux/unix_diag.h
@@ -11,6 +11,8 @@ struct unix_diag_req {
11 __u32 udiag_cookie[2]; 11 __u32 udiag_cookie[2];
12}; 12};
13 13
14#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
15
14struct unix_diag_msg { 16struct unix_diag_msg {
15 __u8 udiag_family; 17 __u8 udiag_family;
16 __u8 udiag_type; 18 __u8 udiag_type;
@@ -21,4 +23,10 @@ struct unix_diag_msg {
21 __u32 udiag_cookie[2]; 23 __u32 udiag_cookie[2];
22}; 24};
23 25
26enum {
27 UNIX_DIAG_NAME,
28
29 UNIX_DIAG_MAX,
30};
31
24#endif 32#endif