1 #ifndef __NETLINK_DIAG_H__
2 #define __NETLINK_DIAG_H__
4 #include <linux/types.h>
6 struct netlink_diag_req {
12 __u32 ndiag_cookie[2];
15 struct netlink_diag_msg {
22 __u32 ndiag_dst_portid;
23 __u32 ndiag_dst_group;
25 __u32 ndiag_cookie[2];
28 struct netlink_diag_ring {
36 /* NETLINK_DIAG_NONE, standard nl API requires this attribute! */
45 #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1)
47 #define NDIAG_PROTO_ALL ((__u8) ~0)
49 #define NDIAG_SHOW_MEMINFO 0x00000001 /* show memory info of a socket */
50 #define NDIAG_SHOW_GROUPS 0x00000002 /* show groups of a netlink socket */
51 #define NDIAG_SHOW_RING_CFG 0x00000004 /* show ring configuration */