unix_diag.h revision dfbaa90dec05d3798ad845db20e1b273ffcfcf0a
1#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
14#define UDIAG_SHOW_NAME		0x00000001	/* show name (not path) */
15#define UDIAG_SHOW_VFS		0x00000002	/* show VFS inode info */
16#define UDIAG_SHOW_PEER		0x00000004	/* show peer socket info */
17#define UDIAG_SHOW_ICONS	0x00000008	/* show pending connections */
18#define UDIAG_SHOW_RQLEN	0x00000010	/* show skb receive queue len */
19
20struct unix_diag_msg {
21	__u8	udiag_family;
22	__u8	udiag_type;
23	__u8	udiag_state;
24	__u8	pad;
25
26	__u32	udiag_ino;
27	__u32	udiag_cookie[2];
28};
29
30enum {
31	UNIX_DIAG_NAME,
32	UNIX_DIAG_VFS,
33	UNIX_DIAG_PEER,
34	UNIX_DIAG_ICONS,
35	UNIX_DIAG_RQLEN,
36
37	UNIX_DIAG_MAX,
38};
39
40struct unix_diag_vfs {
41	__u32	udiag_vfs_ino;
42	__u32	udiag_vfs_dev;
43};
44
45#endif
46