strace/linux/sock_diag.h
JingPiao Chen 09b5362f11 netlink: decode AF_INET inet_diag_msg attributes
* linux/inet_diag.h (inet_diag_meminfo, tcpvegas_info,
tcp_dctcp_info, tcp_bbr_info): New structures.
* linux/sock_diag.h (SK_MEMINFO_VARS): New macro.
* netlink_sock_diag.c: Include  <linux/sock_diag.h>.
(print_meminfo, decode_meminfo, decode_inet_diag_meminfo,
decode_tcpvegas_info, decode_tcp_dctcp_info, decode_tcp_bbr_info):
New functions.
(inet_diag_msg_nla_decoders): New array.
(decode_inet_diag_msg): Use it.
2017-06-30 21:38:49 +00:00

15 lines
265 B
C

#ifndef STRACE_LINUX_SOCK_DIAG_H
#define STRACE_LINUX_SOCK_DIAG_H
#define SOCK_DIAG_BY_FAMILY 20
#define SOCK_DESTROY 21
#define SK_MEMINFO_VARS 9
struct sock_diag_req {
uint8_t sdiag_family;
uint8_t sdiag_protocol;
};
#endif /* !STRACE_LINUX_SOCK_DIAG_H */