Pavel Emelyanov | 22931d3 | 2011-12-15 02:44:35 +0000 | [diff] [blame] | 1 | #ifndef __UNIX_DIAG_H__ |
| 2 | #define __UNIX_DIAG_H__ |
| 3 | |
| 4 | struct 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 Emelyanov | f5248b4 | 2011-12-15 02:45:24 +0000 | [diff] [blame] | 14 | #define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */ |
Pavel Emelyanov | 5f7b056 | 2011-12-15 02:45:43 +0000 | [diff] [blame] | 15 | #define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */ |
Pavel Emelyanov | ac02be8 | 2011-12-15 02:45:58 +0000 | [diff] [blame^] | 16 | #define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */ |
Pavel Emelyanov | f5248b4 | 2011-12-15 02:45:24 +0000 | [diff] [blame] | 17 | |
Pavel Emelyanov | 22931d3 | 2011-12-15 02:44:35 +0000 | [diff] [blame] | 18 | struct 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 Emelyanov | f5248b4 | 2011-12-15 02:45:24 +0000 | [diff] [blame] | 28 | enum { |
| 29 | UNIX_DIAG_NAME, |
Pavel Emelyanov | 5f7b056 | 2011-12-15 02:45:43 +0000 | [diff] [blame] | 30 | UNIX_DIAG_VFS, |
Pavel Emelyanov | ac02be8 | 2011-12-15 02:45:58 +0000 | [diff] [blame^] | 31 | UNIX_DIAG_PEER, |
Pavel Emelyanov | f5248b4 | 2011-12-15 02:45:24 +0000 | [diff] [blame] | 32 | |
| 33 | UNIX_DIAG_MAX, |
| 34 | }; |
| 35 | |
Pavel Emelyanov | 5f7b056 | 2011-12-15 02:45:43 +0000 | [diff] [blame] | 36 | struct unix_diag_vfs { |
| 37 | __u32 udiag_vfs_ino; |
| 38 | __u32 udiag_vfs_dev; |
| 39 | }; |
| 40 | |
Pavel Emelyanov | 22931d3 | 2011-12-15 02:44:35 +0000 | [diff] [blame] | 41 | #endif |