netlink/diag: report flags for netlink sockets
authorAndrey Vagin <avagin@openvz.org>
Tue, 4 Apr 2017 01:13:32 +0000 (18:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Apr 2017 14:13:56 +0000 (07:13 -0700)
commit457c79e54487b076cafa0e1ec5f177e751c54087
treedbed7f5da3f7c18378ecb34d4c774b0964caf08d
parentc800460086d1db3579b747d9297cecd2bbf70119
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>
include/uapi/linux/netlink_diag.h
net/netlink/af_netlink.c
net/netlink/af_netlink.h
net/netlink/diag.c