summaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2017-04-03 18:13:32 -0700
committerDavid S. Miller <davem@davemloft.net>2017-04-05 07:13:56 -0700
commit457c79e54487b076cafa0e1ec5f177e751c54087 (patch)
treedbed7f5da3f7c18378ecb34d4c774b0964caf08d /net/netlink/af_netlink.c
parentc800460086d1db3579b747d9297cecd2bbf70119 (diff)
downloadblackbird-op-linux-457c79e54487b076cafa0e1ec5f177e751c54087.tar.gz
blackbird-op-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.c')
-rw-r--r--net/netlink/af_netlink.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 596eaff66649..fc232441cf23 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -78,14 +78,6 @@ struct listeners {
/* state bits */
#define NETLINK_S_CONGESTED 0x0
-/* 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
-
static inline int netlink_is_kernel(struct sock *sk)
{
return nlk_sk(sk)->flags & NETLINK_F_KERNEL_SOCKET;
OpenPOWER on IntegriCloud