]> err.no Git - linux-2.6/blobdiff - net/ipv6/ndisc.c
[NETNS]: Make icmpv6_sk per namespace.
[linux-2.6] / net / ipv6 / ndisc.c
index bdfc4ea61941e79e817affb8b715e8141084d6c5..1fc33c8c723206a747e49ad8234aa799227519de 100644 (file)
@@ -1297,11 +1297,11 @@ skip_defrtr:
        }
 
        if (ndopts.nd_useropts) {
-               struct nd_opt_hdr *opt;
-               for (opt = ndopts.nd_useropts;
-                    opt;
-                    opt = ndisc_next_useropt(opt, ndopts.nd_useropts_end)) {
-                               ndisc_ra_useropt(skb, opt);
+               struct nd_opt_hdr *p;
+               for (p = ndopts.nd_useropts;
+                    p;
+                    p = ndisc_next_useropt(p, ndopts.nd_useropts_end)) {
+                       ndisc_ra_useropt(skb, p);
                }
        }
 
@@ -1733,7 +1733,7 @@ static int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, int __user *name,
 
 #endif
 
-int __init ndisc_init(struct net_proto_family *ops)
+int __init ndisc_init(void)
 {
        struct ipv6_pinfo *np;
        struct sock *sk;