summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/netlink_diag.h
diff options
context:
space:
mode:
authorAndrey Vagin2017-04-04 03:13:32 +0200
committerDavid S. Miller2017-04-05 16:13:56 +0200
commit457c79e54487b076cafa0e1ec5f177e751c54087 (patch)
treedbed7f5da3f7c18378ecb34d4c774b0964caf08d /include/uapi/linux/netlink_diag.h
parentqed: Add a missing error code (diff)
downloadkernel-qcow2-linux-457c79e54487b076cafa0e1ec5f177e751c54087.tar.gz
kernel-qcow2-linux-457c79e54487b076cafa0e1ec5f177e751c54087.tar.xz
kernel-qcow2-linux-457c79e54487b076cafa0e1ec5f177e751c54087.zip
netlink/diag: report flags for netlink sockets
cb_running is reported in /proc/self/net/netlink and it is reported by the ss tool, when it gets information from the proc files. sock_diag is a new interface which is used instead of proc files, so it looks reasonable that this interface has to report no less information about sockets than proc files. We use these flags to dump and restore netlink sockets. Signed-off-by: Andrei Vagin <avagin@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/netlink_diag.h')
-rw-r--r--include/uapi/linux/netlink_diag.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/linux/netlink_diag.h b/include/uapi/linux/netlink_diag.h
index 76b4d87c83a8..6dcd4de3397b 100644
--- a/include/uapi/linux/netlink_diag.h
+++ b/include/uapi/linux/netlink_diag.h
@@ -38,6 +38,7 @@ enum {
NETLINK_DIAG_GROUPS,
NETLINK_DIAG_RX_RING,
NETLINK_DIAG_TX_RING,
+ NETLINK_DIAG_FLAGS,
__NETLINK_DIAG_MAX,
};
@@ -52,5 +53,14 @@ enum {
/* deprecated since 4.6 */
#define NDIAG_SHOW_RING_CFG 0x00000004 /* show ring configuration */
#endif
+#define NDIAG_SHOW_FLAGS 0x00000008 /* show flags of a netlink socket */
+
+/* flags */
+#define NDIAG_FLAG_CB_RUNNING 0x00000001
+#define NDIAG_FLAG_PKTINFO 0x00000002
+#define NDIAG_FLAG_BROADCAST_ERROR 0x00000004
+#define NDIAG_FLAG_NO_ENOBUFS 0x00000008
+#define NDIAG_FLAG_LISTEN_ALL_NSID 0x00000010
+#define NDIAG_FLAG_CAP_ACK 0x00000020
#endif