inet_diag: Add the SKMEMINFO extension
[deliverable/linux.git] / include / linux / unix_diag.h
CommitLineData
22931d3b
PE
1#ifndef __UNIX_DIAG_H__
2#define __UNIX_DIAG_H__
3
288461e1
PE
4#include <linux/types.h>
5
22931d3b
PE
6struct unix_diag_req {
7 __u8 sdiag_family;
8 __u8 sdiag_protocol;
9 __u16 pad;
10 __u32 udiag_states;
11 __u32 udiag_ino;
12 __u32 udiag_show;
13 __u32 udiag_cookie[2];
14};
15
f5248b48 16#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
5f7b0569 17#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
ac02be8d 18#define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
2aac7a2c 19#define UDIAG_SHOW_ICONS 0x00000008 /* show pending connections */
cbf39195 20#define UDIAG_SHOW_RQLEN 0x00000010 /* show skb receive queue len */
f5248b48 21
22931d3b
PE
22struct unix_diag_msg {
23 __u8 udiag_family;
24 __u8 udiag_type;
25 __u8 udiag_state;
26 __u8 pad;
27
28 __u32 udiag_ino;
29 __u32 udiag_cookie[2];
30};
31
f5248b48
PE
32enum {
33 UNIX_DIAG_NAME,
5f7b0569 34 UNIX_DIAG_VFS,
ac02be8d 35 UNIX_DIAG_PEER,
2aac7a2c 36 UNIX_DIAG_ICONS,
cbf39195 37 UNIX_DIAG_RQLEN,
f5248b48
PE
38
39 UNIX_DIAG_MAX,
40};
41
5f7b0569
PE
42struct unix_diag_vfs {
43 __u32 udiag_vfs_ino;
44 __u32 udiag_vfs_dev;
45};
46
22931d3b 47#endif
This page took 0.031292 seconds and 5 git commands to generate.