]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - include/uapi/linux/netlink_diag.h
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! */
46 #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1)
48 #define NDIAG_PROTO_ALL ((__u8) ~0)
50 #define NDIAG_SHOW_MEMINFO 0x00000001 /* show memory info of a socket */
51 #define NDIAG_SHOW_GROUPS 0x00000002 /* show groups of a netlink socket */
53 /* deprecated since 4.6 */
54 #define NDIAG_SHOW_RING_CFG 0x00000004 /* show ring configuration */
56 #define NDIAG_SHOW_FLAGS 0x00000008 /* show flags of a netlink socket */
59 #define NDIAG_FLAG_CB_RUNNING 0x00000001
60 #define NDIAG_FLAG_PKTINFO 0x00000002
61 #define NDIAG_FLAG_BROADCAST_ERROR 0x00000004
62 #define NDIAG_FLAG_NO_ENOBUFS 0x00000008
63 #define NDIAG_FLAG_LISTEN_ALL_NSID 0x00000010
64 #define NDIAG_FLAG_CAP_ACK 0x00000020