[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1341849654.6118.5.camel@joe2Laptop>
Date: Mon, 09 Jul 2012 09:00:54 -0700
From: Joe Perches <joe@...ches.com>
To: Christian Franke <christian.franke@...tonsystems.com>
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH] net/ipv4/ipip: add support to move between network
namespaces
On Mon, 2012-07-09 at 17:41 +0200, Christian Franke wrote:
> Below there is a first attempt at adding support for IPIP tunnels to be moved
> across network namespaces. This allows e.g. for tunnel setups where the inner
> network is completely isolated from the outer transport network.
trivia:
> diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
[]
> @@ -652,6 +660,9 @@ ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
> break;
>
> case SIOCADDTUNNEL:
> + /* New Tunnels will be created in the current namespace */
New tunnels
> @@ -701,6 +712,15 @@ ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
> t->parms.iph.tos = p.iph.tos;
> t->parms.iph.frag_off = p.iph.frag_off;
> if (t->parms.link != p.link) {
> + if (!net_eq(dev_net(dev),
> + target_net(dev))) {
> + pr_info_once("%s: rebinding "
> + "cross ns device "
> + "is not supported\n",
> + __func__);
Please coalesce format strings.
pr_info_once("%s: rebinding cross ns device is not supported\n",
__func__);
shouldn't "cross ns device" be "different ns devices"?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists