},
 };
 
-#define IPV4_DEVCONF_DFLT(attr) IPV4_DEVCONF(ipv4_devconf_dflt, attr)
+#define IPV4_DEVCONF_DFLT(net, attr) \
+       IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
 
 static const struct nla_policy ifa_ipv4_policy[IFA_MAX+1] = {
        [IFA_LOCAL]             = { .type = NLA_U32 },
        if (!in_dev)
                goto out;
        INIT_RCU_HEAD(&in_dev->rcu_head);
-       memcpy(&in_dev->cnf, &ipv4_devconf_dflt, sizeof(in_dev->cnf));
+       memcpy(&in_dev->cnf, dev->nd_net->ipv4.devconf_dflt,
+                       sizeof(in_dev->cnf));
        in_dev->cnf.sysctl = NULL;
        in_dev->dev = dev;
        if ((in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl)) == NULL)
                rcu_read_lock();
                in_dev = __in_dev_get_rcu(dev);
                if (in_dev && !test_bit(i, in_dev->cnf.state))
-                       in_dev->cnf.data[i] = ipv4_devconf_dflt.data[i];
+                       in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i];
                rcu_read_unlock();
        }
        read_unlock(&dev_base_lock);
        int on = IPV4_DEVCONF_ALL(FORWARDING);
 
        IPV4_DEVCONF_ALL(ACCEPT_REDIRECTS) = !on;
-       IPV4_DEVCONF_DFLT(FORWARDING) = on;
+       IPV4_DEVCONF_DFLT(net, FORWARDING) = on;
 
        read_lock(&dev_base_lock);
        for_each_netdev(net, dev) {
 
                set_bit(i, cnf->state);
 
-               if (cnf == &ipv4_devconf_dflt)
+               if (cnf == net->ipv4.devconf_dflt)
                        devinet_copy_dflt_conf(net, i);
        }
 
 
        set_bit(i, cnf->state);
 
-       if (cnf == &ipv4_devconf_dflt)
+       if (cnf == net->ipv4.devconf_dflt)
                devinet_copy_dflt_conf(net, i);
 
        return 1;
 
                if (valp == &IPV4_DEVCONF_ALL(FORWARDING))
                        inet_forward_change(net);
-               else if (valp != &IPV4_DEVCONF_DFLT(FORWARDING))
+               else if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING))
                        rt_cache_flush(0);
        }