Skip to contentSkip to conversation

batman-adv: Restrict movement of batman interfaces between netns.

PATCH In review Daniel Ehlers 1 participant 1 message May 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 batman-adv: Restrict movement of batman interfaces between netns.

We shall _not_ move composed interfaces between network namespaces. Should fix issue #179, though I only tested it in a pure netns enviroment and not in a more complex lxc setup.

---
 soft-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
soft-interface.c +1 -1
index e783afb..dcaf02b 100644
@@ -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
Signature · 1 line
1.9.2