1 #ifndef _UAPI__SOCK_DIAG_H__ 2 #define _UAPI__SOCK_DIAG_H__ 3 4 #include <linux/types.h> 5 6 #define SOCK_DIAG_BY_FAMILY 20 7 #define SOCK_DESTROY 21 8 9 struct sock_diag_req { 10 __u8 sdiag_family; 11 __u8 sdiag_protocol; 12 }; 13 14 enum { 15 SK_MEMINFO_RMEM_ALLOC, 16 SK_MEMINFO_RCVBUF, 17 SK_MEMINFO_WMEM_ALLOC, 18 SK_MEMINFO_SNDBUF, 19 SK_MEMINFO_FWD_ALLOC, 20 SK_MEMINFO_WMEM_QUEUED, 21 SK_MEMINFO_OPTMEM, 22 SK_MEMINFO_BACKLOG, 23 SK_MEMINFO_DROPS, 24 25 SK_MEMINFO_VARS, 26 }; 27 28 enum sknetlink_groups { 29 SKNLGRP_NONE, 30 SKNLGRP_INET_TCP_DESTROY, 31 SKNLGRP_INET_UDP_DESTROY, 32 SKNLGRP_INET6_TCP_DESTROY, 33 SKNLGRP_INET6_UDP_DESTROY, 34 __SKNLGRP_MAX, 35 }; 36 #define SKNLGRP_MAX (__SKNLGRP_MAX - 1) 37 38 #endif /* _UAPI__SOCK_DIAG_H__ */ 39