From b7a258ed33bc70519dd2e9cbcf9e5376a153dba0 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 16 Apr 2008 01:24:13 -0700 Subject: [PATCH] --- yaml --- r: 90785 b: refs/heads/master c: 554eb27782d4bb79e0a286a08ecafb81f758058c h: refs/heads/master i: 90783: c4d5f595632094311494ff0419b28cf15050d630 v: v3 --- [refs] | 2 +- trunk/net/ipv6/ip6_tunnel.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6749262c403f..4980e422dfc3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2f7f54b725f1a93f0a4daace1a924bee382b33b6 +refs/heads/master: 554eb27782d4bb79e0a286a08ecafb81f758058c diff --git a/trunk/net/ipv6/ip6_tunnel.c b/trunk/net/ipv6/ip6_tunnel.c index d9b272159097..2bda3ba100b1 100644 --- a/trunk/net/ipv6/ip6_tunnel.c +++ b/trunk/net/ipv6/ip6_tunnel.c @@ -243,6 +243,8 @@ static struct ip6_tnl *ip6_tnl_create(struct net *net, struct ip6_tnl_parm *p) if (dev == NULL) goto failed; + dev_net_set(dev, net); + if (strchr(name, '%')) { if (dev_alloc_name(dev, name) < 0) goto failed_free; @@ -1341,6 +1343,7 @@ static void ip6_tnl_dev_setup(struct net_device *dev) dev->mtu = ETH_DATA_LEN - sizeof (struct ipv6hdr); dev->flags |= IFF_NOARP; dev->addr_len = sizeof(struct in6_addr); + dev->features |= NETIF_F_NETNS_LOCAL; }