]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv6/proc.c
[NETNS][IPV6] anycast - handle several network namespace
[linux-2.6-omap-h63xx.git] / net / ipv6 / proc.c
index 199ef379e5017e10d1e1da74cfb0d865e8266f1c..364dc332532c39db9e15063982f1f7cd4665c8d4 100644 (file)
@@ -214,6 +214,9 @@ int snmp6_register_dev(struct inet6_dev *idev)
        if (!idev || !idev->dev)
                return -EINVAL;
 
+       if (dev_net(idev->dev) != &init_net)
+               return 0;
+
        if (!proc_net_devsnmp6)
                return -ENOENT;