blob: 2d74a86024ace1503c96a2d7572baa87aa5affff [file] [log] [blame]
Pavel Emelyanov22931d32011-12-15 02:44:35 +00001#ifndef __UNIX_DIAG_H__
2#define __UNIX_DIAG_H__
3
4struct unix_diag_req {
5 __u8 sdiag_family;
6 __u8 sdiag_protocol;
7 __u16 pad;
8 __u32 udiag_states;
9 __u32 udiag_ino;
10 __u32 udiag_show;
11 __u32 udiag_cookie[2];
12};
13
Pavel Emelyanovf5248b42011-12-15 02:45:24 +000014#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
Pavel Emelyanov5f7b0562011-12-15 02:45:43 +000015#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
Pavel Emelyanovac02be82011-12-15 02:45:58 +000016#define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
Pavel Emelyanovf5248b42011-12-15 02:45:24 +000017
Pavel Emelyanov22931d32011-12-15 02:44:35 +000018struct unix_diag_msg {
19 __u8 udiag_family;
20 __u8 udiag_type;
21 __u8 udiag_state;
22 __u8 pad;
23
24 __u32 udiag_ino;
25 __u32 udiag_cookie[2];
26};
27
Pavel Emelyanovf5248b42011-12-15 02:45:24 +000028enum {
29 UNIX_DIAG_NAME,
Pavel Emelyanov5f7b0562011-12-15 02:45:43 +000030 UNIX_DIAG_VFS,
Pavel Emelyanovac02be82011-12-15 02:45:58 +000031 UNIX_DIAG_PEER,
Pavel Emelyanovf5248b42011-12-15 02:45:24 +000032
33 UNIX_DIAG_MAX,
34};
35
Pavel Emelyanov5f7b0562011-12-15 02:45:43 +000036struct unix_diag_vfs {
37 __u32 udiag_vfs_ino;
38 __u32 udiag_vfs_dev;
39};
40
Pavel Emelyanov22931d32011-12-15 02:44:35 +000041#endif