12 #ifndef NETLINK_IDIAGNL_H_
13 #define NETLINK_IDIAGNL_H_
15 #include <netlink/netlink.h>
24 #define IDIAG_TCPDIAG_GETSOCK 18
25 #define IDIAG_DCCPDIAG_GETSOCK 19
26 #define IDIAG_GETSOCK_MAX 24
52 #define IDIAG_SS_ALL ((1<<IDIAG_SS_MAX)-1)
75 #define IDIAG_ATTR_ALL ((1<<IDIAG_ATTR_MAX)-1)
82 IDIAG_SK_MEMINFO_RMEM_ALLOC,
83 IDIAG_SK_MEMINFO_RCVBUF,
84 IDIAG_SK_MEMINFO_WMEM_ALLOC,
85 IDIAG_SK_MEMINFO_SNDBUF,
86 IDIAG_SK_MEMINFO_FWD_ALLOC,
87 IDIAG_SK_MEMINFO_WMEM_QUEUED,
88 IDIAG_SK_MEMINFO_OPTMEM,
89 IDIAG_SK_MEMINFO_BACKLOG,
91 IDIAG_SK_MEMINFO_VARS,
101 IDIAG_TIMER_KEEPALIVE,
102 IDIAG_TIMER_TIMEWAIT,
char * idiagnl_exts2str(uint8_t, char *, size_t)
Convert inet diag extension flags to a string.
int idiagnl_str2state(const char *)
Convert inet diag socket state string to int.
int idiagnl_send_simple(struct nl_sock *, int, uint8_t, uint16_t, uint16_t)
Send trivial idiag netlink message.
char * idiagnl_shutdown2str(uint8_t, char *, size_t)
Convert shutdown state to string.
char * idiagnl_attrs2str(int, char *, size_t)
Convert inetdiag extended attributes to strings.
int idiagnl_str2timer(const char *)
Convert inet diag timer string to int.
char * idiagnl_tcpopts2str(uint8_t, char *, size_t)
Convert TCP option attributes to string.
int idiagnl_connect(struct nl_sock *)
Create and connect idiag netlink socket.
char * idiagnl_tcpstate2str(uint8_t, char *, size_t)
Convert inetdiag tcp states to strings.
char * idiagnl_timer2str(int, char *, size_t)
Convert inet diag timer types to strings.
char * idiagnl_state2str(int, char *, size_t)
Convert inet diag socket states to strings.