Lines Matching refs:cnf
263 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
264 sizeof(in_dev->cnf)); in inetdev_init()
265 in_dev->cnf.sysctl = NULL; in inetdev_init()
270 if (IPV4_DEVCONF(in_dev->cnf, FORWARDING)) in inetdev_init()
1946 ((u32 *) nla_data(nla))[i] = in_dev->cnf.data[i]; in inet_fill_link_af()
2197 devconf = &in_dev->cnf; in inet_netconf_get_devconf()
2264 &in_dev->cnf, in inet_netconf_dump_devconf()
2319 if (in_dev && !test_bit(i, in_dev->cnf.state)) in devinet_copy_dflt_conf()
2320 in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i]; in devinet_copy_dflt_conf()
2353 dev->ifindex, &in_dev->cnf); in inet_forward_change()
2358 static int devinet_conf_ifindex(struct net *net, struct ipv4_devconf *cnf) in devinet_conf_ifindex() argument
2360 if (cnf == net->ipv4.devconf_dflt) in devinet_conf_ifindex()
2362 else if (cnf == net->ipv4.devconf_all) in devinet_conf_ifindex()
2366 = container_of(cnf, struct in_device, cnf); in devinet_conf_ifindex()
2379 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc() local
2381 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc()
2384 set_bit(i, cnf->state); in devinet_conf_proc()
2386 if (cnf == net->ipv4.devconf_dflt) in devinet_conf_proc()
2399 ifindex = devinet_conf_ifindex(net, cnf); in devinet_conf_proc()
2402 ifindex, cnf); in devinet_conf_proc()
2406 ifindex = devinet_conf_ifindex(net, cnf); in devinet_conf_proc()
2409 ifindex, cnf); in devinet_conf_proc()
2413 ifindex = devinet_conf_ifindex(net, cnf); in devinet_conf_proc()
2416 ifindex, cnf); in devinet_conf_proc()
2444 struct ipv4_devconf *cnf = ctl->extra1; in devinet_sysctl_forward() local
2446 container_of(cnf, struct in_device, cnf); in devinet_sysctl_forward()
2452 cnf); in devinet_sysctl_forward()
2591 struct ipv4_devconf *cnf, int ifindex) in __devinet_sysctl_unregister() argument
2593 struct devinet_sysctl_table *t = cnf->sysctl; in __devinet_sysctl_unregister()
2596 cnf->sysctl = NULL; in __devinet_sysctl_unregister()
2615 idev->dev->ifindex, &idev->cnf); in devinet_sysctl_register()
2625 __devinet_sysctl_unregister(net, &idev->cnf, idev->dev->ifindex); in devinet_sysctl_unregister()