~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/netlink_diag.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef __NETLINK_DIAG_H__
  3 #define __NETLINK_DIAG_H__
  4 
  5 #include <linux/types.h>
  6 
  7 struct netlink_diag_req {
  8         __u8    sdiag_family;
  9         __u8    sdiag_protocol;
 10         __u16   pad;
 11         __u32   ndiag_ino;
 12         __u32   ndiag_show;
 13         __u32   ndiag_cookie[2];
 14 };
 15 
 16 struct netlink_diag_msg {
 17         __u8    ndiag_family;
 18         __u8    ndiag_type;
 19         __u8    ndiag_protocol;
 20         __u8    ndiag_state;
 21 
 22         __u32   ndiag_portid;
 23         __u32   ndiag_dst_portid;
 24         __u32   ndiag_dst_group;
 25         __u32   ndiag_ino;
 26         __u32   ndiag_cookie[2];
 27 };
 28 
 29 struct netlink_diag_ring {
 30         __u32   ndr_block_size;
 31         __u32   ndr_block_nr;
 32         __u32   ndr_frame_size;
 33         __u32   ndr_frame_nr;
 34 };
 35 
 36 enum {
 37         /* NETLINK_DIAG_NONE, standard nl API requires this attribute!  */
 38         NETLINK_DIAG_MEMINFO,
 39         NETLINK_DIAG_GROUPS,
 40         NETLINK_DIAG_RX_RING,
 41         NETLINK_DIAG_TX_RING,
 42         NETLINK_DIAG_FLAGS,
 43 
 44         __NETLINK_DIAG_MAX,
 45 };
 46 
 47 #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1)
 48 
 49 #define NDIAG_PROTO_ALL         ((__u8) ~0)
 50 
 51 #define NDIAG_SHOW_MEMINFO      0x00000001 /* show memory info of a socket */
 52 #define NDIAG_SHOW_GROUPS       0x00000002 /* show groups of a netlink socket */
 53 #ifndef __KERNEL__
 54 /* deprecated since 4.6 */
 55 #define NDIAG_SHOW_RING_CFG     0x00000004 /* show ring configuration */
 56 #endif
 57 #define NDIAG_SHOW_FLAGS        0x00000008 /* show flags of a netlink socket */
 58 
 59 /* flags */
 60 #define NDIAG_FLAG_CB_RUNNING           0x00000001
 61 #define NDIAG_FLAG_PKTINFO              0x00000002
 62 #define NDIAG_FLAG_BROADCAST_ERROR      0x00000004
 63 #define NDIAG_FLAG_NO_ENOBUFS           0x00000008
 64 #define NDIAG_FLAG_LISTEN_ALL_NSID      0x00000010
 65 #define NDIAG_FLAG_CAP_ACK              0x00000020
 66 
 67 #endif
 68 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php