summaryrefslogtreecommitdiff
path: root/net/batman-adv/netlink.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-07-03 13:31:48 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2016-08-09 07:54:43 +0200
commit4c09a08b47ffac9aa3bc91870aa54c9ae39d9674 (patch)
tree7bc88f5fba3701ba71c3dd8e8a8e58453ed1c1bd /net/batman-adv/netlink.c
parentea4152e1171604f325f1a5f080190823a0edbc1f (diff)
batman-adv: Indicate netlink socket can be used with netns.
Set the netnsof flag on the family structure, indicating it can be used with different network name spaces. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/netlink.c')
-rw-r--r--net/batman-adv/netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index c3f68167591d..18831e72b0fb 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -54,6 +54,7 @@ struct genl_family batadv_netlink_family = {
.name = BATADV_NL_NAME,
.version = 1,
.maxattr = BATADV_ATTR_MAX,
+ .netnsok = true,
};
/* multicast groups */