From 13d47ddc8a899e7b603c6b37ecad2bb38f49d978 Mon Sep 17 00:00:00 2001
From: Daniel Ehlers <danielehlers@mindeye.net>
Date: Thu, 22 May 2014 09:23:54 +0200
Subject: [PATCH] batman-adv: Prohibit move of batman device between network
 namespaces.

---
 soft-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/soft-interface.c b/soft-interface.c
index e783afb..dcaf02b 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -909,7 +909,7 @@ static void batadv_softif_init_early(struct net_device *dev)
 
 	dev->netdev_ops = &batadv_netdev_ops;
 	dev->destructor = batadv_softif_free;
-	dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
+	dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_NETNS_LOCAL;
 	dev->tx_queue_len = 0;
 
 	/* can't call min_mtu, because the needed variables
-- 
1.9.2

