diff mbox

[v7,11/11] batman-adv: Indicate netlink socket can be used with netns.

Message ID 1463494399-26405-12-git-send-email-andrew@lunn.ch
State Superseded, archived
Delegated to: Marek Lindner
Headers show

Commit Message

Andrew Lunn May 17, 2016, 2:13 p.m. UTC
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>
---
 net/batman-adv/netlink.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index 013505e..b56b8c2 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -50,6 +50,7 @@  struct genl_family batadv_netlink_family = {
 	.name = BATADV_NL_NAME,
 	.version = 1,
 	.maxattr = BATADV_ATTR_MAX,
+	.netnsok = true,
 };
 
 static struct nla_policy batadv_netlink_policy[NUM_BATADV_ATTR] = {