Lines Matching defs:cnf
272 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt,
273 sizeof(in_dev->cnf));
274 in_dev->cnf.sysctl = NULL;
279 if (IPV4_DEVCONF(in_dev->cnf, FORWARDING))
1985 ((u32 *) nla_data(nla))[i] = in_dev->cnf.data[i];
2238 devconf = &in_dev->cnf;
2304 &in_dev->cnf,
2359 if (in_dev && !test_bit(i, in_dev->cnf.state))
2360 in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i];
2393 dev->ifindex, &in_dev->cnf);
2398 static int devinet_conf_ifindex(struct net *net, struct ipv4_devconf *cnf)
2400 if (cnf == net->ipv4.devconf_dflt)
2402 else if (cnf == net->ipv4.devconf_all)
2406 = container_of(cnf, struct in_device, cnf);
2419 struct ipv4_devconf *cnf = ctl->extra1;
2421 int i = (int *)ctl->data - cnf->data;
2424 set_bit(i, cnf->state);
2426 if (cnf == net->ipv4.devconf_dflt)
2439 ifindex = devinet_conf_ifindex(net, cnf);
2442 ifindex, cnf);
2446 ifindex = devinet_conf_ifindex(net, cnf);
2449 ifindex, cnf);
2453 ifindex = devinet_conf_ifindex(net, cnf);
2456 ifindex, cnf);
2488 struct ipv4_devconf *cnf = ctl->extra1;
2490 container_of(cnf, struct in_device, cnf);
2496 cnf);
2637 struct ipv4_devconf *cnf, int ifindex)
2639 struct devinet_sysctl_table *t = cnf->sysctl;
2642 cnf->sysctl = NULL;
2661 idev->dev->ifindex, &idev->cnf);
2671 __devinet_sysctl_unregister(net, &idev->cnf, idev->dev->ifindex);