Home | History | Annotate | Download | only in linux
      1 #ifndef __SOCK_DIAG_H__
      2 #define __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 
     24 	SK_MEMINFO_VARS,
     25 };
     26 
     27 enum sknetlink_groups {
     28 	SKNLGRP_NONE,
     29 	SKNLGRP_INET_TCP_DESTROY,
     30 	SKNLGRP_INET_UDP_DESTROY,
     31 	SKNLGRP_INET6_TCP_DESTROY,
     32 	SKNLGRP_INET6_UDP_DESTROY,
     33 	__SKNLGRP_MAX,
     34 };
     35 #define SKNLGRP_MAX	(__SKNLGRP_MAX - 1)
     36 
     37 #endif /* __SOCK_DIAG_H__ */
     38