814c0d575d
* linux/netlink_diag.h: New file. * Makefile.am (EXTRA_DIST): Add it. * socketutils.c: Include it and "xlat/netlink_protocols.h". (netlink_send_query, netlink_parse_response, netlink_print): New functions. (print_sockaddr_by_inode): Hook up netlink_print.
25 lines
512 B
C
25 lines
512 B
C
struct netlink_diag_req {
|
|
uint8_t sdiag_family;
|
|
uint8_t sdiag_protocol;
|
|
uint16_t pad;
|
|
uint32_t ndiag_ino;
|
|
uint32_t ndiag_show;
|
|
uint32_t ndiag_cookie[2];
|
|
};
|
|
|
|
struct netlink_diag_msg {
|
|
uint8_t ndiag_family;
|
|
uint8_t ndiag_type;
|
|
uint8_t ndiag_protocol;
|
|
uint8_t ndiag_state;
|
|
|
|
uint32_t ndiag_portid;
|
|
uint32_t ndiag_dst_portid;
|
|
uint32_t ndiag_dst_group;
|
|
uint32_t ndiag_ino;
|
|
uint32_t ndiag_cookie[2];
|
|
};
|
|
|
|
#define NDIAG_SHOW_MEMINFO 0x00000001
|
|
#define NDIAG_PROTO_ALL ((uint8_t) ~0)
|