public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Daniel Ehlers <danielehlers@mindeye.net>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Restrict movement of batman interfaces between netns.
Date: Mon, 26 May 2014 12:18:31 +0200	[thread overview]
Message-ID: <538314F7.1070404@mindeye.net> (raw)

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.

Signed-off-by: Daniel Ehlers <danielehlers@mindeye.net>
---
 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



                 reply	other threads:[~2014-05-26 10:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=538314F7.1070404@mindeye.net \
    --to=danielehlers@mindeye.net \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox