Lines Matching defs:cnf
262 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt,
263 sizeof(in_dev->cnf));
264 in_dev->cnf.sysctl = NULL;
269 if (IPV4_DEVCONF(in_dev->cnf, FORWARDING))
1944 ((u32 *) nla_data(nla))[i] = in_dev->cnf.data[i];
2195 devconf = &in_dev->cnf;
2262 &in_dev->cnf,
2317 if (in_dev && !test_bit(i, in_dev->cnf.state))
2318 in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i];
2351 dev->ifindex, &in_dev->cnf);
2356 static int devinet_conf_ifindex(struct net *net, struct ipv4_devconf *cnf)
2358 if (cnf == net->ipv4.devconf_dflt)
2360 else if (cnf == net->ipv4.devconf_all)
2364 = container_of(cnf, struct in_device, cnf);
2377 struct ipv4_devconf *cnf = ctl->extra1;
2379 int i = (int *)ctl->data - cnf->data;
2382 set_bit(i, cnf->state);
2384 if (cnf == net->ipv4.devconf_dflt)
2397 ifindex = devinet_conf_ifindex(net, cnf);
2400 ifindex, cnf);
2404 ifindex = devinet_conf_ifindex(net, cnf);
2407 ifindex, cnf);
2411 ifindex = devinet_conf_ifindex(net, cnf);
2414 ifindex, cnf);
2442 struct ipv4_devconf *cnf = ctl->extra1;
2444 container_of(cnf, struct in_device, cnf);
2450 cnf);
2589 struct ipv4_devconf *cnf, int ifindex)
2591 struct devinet_sysctl_table *t = cnf->sysctl;
2594 cnf->sysctl = NULL;
2613 idev->dev->ifindex, &idev->cnf);
2623 __devinet_sysctl_unregister(net, &idev->cnf, idev->dev->ifindex);