diff options
author | Andrey Vagin <avagin@openvz.org> | 2017-04-03 18:13:32 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-05 07:13:56 -0700 |
commit | 457c79e54487b076cafa0e1ec5f177e751c54087 (patch) | |
tree | dbed7f5da3f7c18378ecb34d4c774b0964caf08d /net/netlink/af_netlink.h | |
parent | c800460086d1db3579b747d9297cecd2bbf70119 (diff) | |
download | linux-457c79e54487b076cafa0e1ec5f177e751c54087.tar.gz linux-457c79e54487b076cafa0e1ec5f177e751c54087.tar.bz2 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 'net/netlink/af_netlink.h')
-rw-r--r-- | net/netlink/af_netlink.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.h b/net/netlink/af_netlink.h index 4fdb38318977..f792f8d7f982 100644 --- a/net/netlink/af_netlink.h +++ b/net/netlink/af_netlink.h @@ -6,6 +6,14 @@ #include <linux/workqueue.h> #include <net/sock.h> +/* flags */ +#define NETLINK_F_KERNEL_SOCKET 0x1 +#define NETLINK_F_RECV_PKTINFO 0x2 +#define NETLINK_F_BROADCAST_SEND_ERROR 0x4 +#define NETLINK_F_RECV_NO_ENOBUFS 0x8 +#define NETLINK_F_LISTEN_ALL_NSID 0x10 +#define NETLINK_F_CAP_ACK 0x20 + #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) #define NLGRPLONGS(x) (NLGRPSZ(x)/sizeof(unsigned long)) |