Home
last modified time | relevance | path

Searched refs:in_dev (Results 1 – 25 of 26) sorted by relevance

12

/net/ipv4/
Digmp.c122 #define IGMP_V1_SEEN(in_dev) \ argument
123 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \
124 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \
125 ((in_dev)->mr_v1_seen && \
126 time_before(jiffies, (in_dev)->mr_v1_seen)))
127 #define IGMP_V2_SEEN(in_dev) \ argument
128 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \
129 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \
130 ((in_dev)->mr_v2_seen && \
131 time_before(jiffies, (in_dev)->mr_v2_seen)))
[all …]
Ddevinet.c201 static void inet_del_ifa(struct in_device *in_dev,
264 struct in_device *in_dev; in inetdev_init() local
269 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init()
270 if (!in_dev) in inetdev_init()
272 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
273 sizeof(in_dev->cnf)); in inetdev_init()
274 in_dev->cnf.sysctl = NULL; in inetdev_init()
275 in_dev->dev = dev; in inetdev_init()
276 in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl); in inetdev_init()
277 if (!in_dev->arp_parms) in inetdev_init()
[all …]
Darp.c227 struct in_device *in_dev; in arp_constructor() local
236 in_dev = __in_dev_get_rcu(dev); in arp_constructor()
237 if (!in_dev) { in arp_constructor()
244 parms = in_dev->arp_parms; in arp_constructor()
340 struct in_device *in_dev; in arp_solicit() local
344 in_dev = __in_dev_get_rcu(dev); in arp_solicit()
345 if (!in_dev) { in arp_solicit()
349 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit()
363 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit()
396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) in arp_ignore() argument
[all …]
Droute.c745 struct in_device *in_dev; in __ip_do_redirect() local
764 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
765 if (!in_dev) in __ip_do_redirect()
769 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
774 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
775 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
777 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
810 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
871 struct in_device *in_dev; in ip_rt_send_redirect() local
878 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect()
[all …]
Dip_input.c287 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local
289 if (in_dev) { in ip_rcv_options()
290 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options()
291 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options()
370 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
372 if (in_dev && IN_DEV_ORCONF(in_dev, NOPOLICY)) in ip_rcv_finish_core()
397 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
414 if (in_dev && in ip_rcv_finish_core()
415 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST)) { in ip_rcv_finish_core()
Dfib_frontend.c274 struct in_device *in_dev; in fib_compute_spec_dst() local
285 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst()
291 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst()
546 struct in_device *in_dev; in rtentry_to_fib_config() local
548 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config()
549 if (!in_dev) in rtentry_to_fib_config()
555 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config()
1111 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local
1112 struct net_device *dev = in_dev->dev; in fib_add_ifaddr()
1119 prim = inet_ifa_byprefix(in_dev, prefix, mask); in fib_add_ifaddr()
[all …]
Dipmr.c427 struct in_device *in_dev; in ipmr_init_vif_indev() local
431 in_dev = __in_dev_get_rtnl(dev); in ipmr_init_vif_indev()
432 if (!in_dev) in ipmr_init_vif_indev()
434 ipv4_devconf_setall(in_dev); in ipmr_init_vif_indev()
435 neigh_parms_data_state_setall(in_dev->arp_parms); in ipmr_init_vif_indev()
436 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; in ipmr_init_vif_indev()
655 struct in_device *in_dev; in vif_delete() local
689 in_dev = __in_dev_get_rtnl(dev); in vif_delete()
690 if (in_dev) { in vif_delete()
691 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--; in vif_delete()
[all …]
Dicmp.c1037 struct in_device *in_dev; in icmp_build_probe() local
1122 in_dev = __in_dev_get_rcu(dev); in icmp_build_probe()
1123 if (in_dev && rcu_access_pointer(in_dev->ifa_list)) in icmp_build_probe()
Dfib_semantics.c1217 struct in_device *in_dev; in fib_check_nh_nongw() local
1229 in_dev = inetdev_by_index(net, nh->fib_nh_oif); in fib_check_nh_nongw()
1230 if (!in_dev) in fib_check_nh_nongw()
1233 if (!(in_dev->dev->flags & IFF_UP)) { in fib_check_nh_nongw()
1238 nh->fib_nh_dev = in_dev->dev; in fib_check_nh_nongw()
Dip_gre.c924 struct in_device *in_dev; in ipgre_close() local
925 in_dev = inetdev_by_index(t->net, t->mlink); in ipgre_close()
926 if (in_dev) in ipgre_close()
927 ip_mc_dec_group(in_dev, t->parms.iph.daddr); in ipgre_close()
Dudp.c2573 struct in_device *in_dev = NULL; in udp_v4_early_demux() local
2590 in_dev = __in_dev_get_rcu(skb->dev); in udp_v4_early_demux()
2592 if (!in_dev) in udp_v4_early_demux()
2595 ours = ip_check_mc_rcu(in_dev, iph->daddr, iph->saddr, in udp_v4_early_demux()
2629 if (!inet_sk(sk)->inet_daddr && in_dev) in udp_v4_early_demux()
2633 skb->dev, in_dev, &itag); in udp_v4_early_demux()
/net/netfilter/
Dnf_conntrack_broadcast.c27 struct in_device *in_dev; in nf_conntrack_broadcast_help() local
39 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help()
40 if (in_dev != NULL) { in nf_conntrack_broadcast_help()
43 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
Dnfnetlink_osf.c34 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); in nf_osf_ttl() local
46 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_osf_ttl()
/net/bridge/
Dbr_arp_nd_proxy.c95 struct in_device *in_dev; in br_chk_addr_ip() local
98 in_dev = __in_dev_get_rcu(dev); in br_chk_addr_ip()
99 if (in_dev) in br_chk_addr_ip()
100 addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip, in br_chk_addr_ip()
Dbr_netfilter_hooks.c389 struct in_device *in_dev = __in_dev_get_rcu(dev); in br_nf_pre_routing_finish() local
398 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev)) in br_nf_pre_routing_finish()
Dbr_multicast.c4096 struct in_device *in_dev = in_dev_get(br->dev); in br_ip4_multicast_join_snoopers() local
4098 if (!in_dev) in br_ip4_multicast_join_snoopers()
4101 __ip_mc_inc_group(in_dev, htonl(INADDR_ALLSNOOPERS_GROUP), GFP_ATOMIC); in br_ip4_multicast_join_snoopers()
4102 in_dev_put(in_dev); in br_ip4_multicast_join_snoopers()
4127 struct in_device *in_dev = in_dev_get(br->dev); in br_ip4_multicast_leave_snoopers() local
4129 if (WARN_ON(!in_dev)) in br_ip4_multicast_leave_snoopers()
4132 __ip_mc_dec_group(in_dev, htonl(INADDR_ALLSNOOPERS_GROUP), GFP_ATOMIC); in br_ip4_multicast_leave_snoopers()
4133 in_dev_put(in_dev); in br_ip4_multicast_leave_snoopers()
/net/batman-adv/
Dmulticast.c113 struct in_device *in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_rtr_flags_softif_get_ipv4() local
115 if (in_dev && IN_DEV_MFORWARD(in_dev)) in batadv_mcast_mla_rtr_flags_softif_get_ipv4()
342 struct in_device *in_dev; in batadv_mcast_mla_softif_get_ipv4() local
352 in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_softif_get_ipv4()
353 if (!in_dev) { in batadv_mcast_mla_softif_get_ipv4()
358 for (pmc = rcu_dereference(in_dev->mc_list); pmc; in batadv_mcast_mla_softif_get_ipv4()
Dtranslation-table.c643 struct net_device *in_dev = NULL; in batadv_tt_local_add() local
654 in_dev = dev_get_by_index(net, ifindex); in batadv_tt_local_add()
656 if (in_dev) in batadv_tt_local_add()
657 in_hardif = batadv_hardif_get_by_netdev(in_dev); in batadv_tt_local_add()
816 dev_put(in_dev); in batadv_tt_local_add()
/net/core/
Dnetpoll.c680 struct in_device *in_dev; in netpoll_setup() local
730 in_dev = __in_dev_get_rtnl(ndev); in netpoll_setup()
731 if (!in_dev) in netpoll_setup()
734 ifa = rtnl_dereference(in_dev->ifa_list); in netpoll_setup()
Dpktgen.c2224 struct in_device *in_dev; in pktgen_setup_inject() local
2227 in_dev = __in_dev_get_rcu(pkt_dev->odev); in pktgen_setup_inject()
2228 if (in_dev) { in pktgen_setup_inject()
2231 ifa = rcu_dereference(in_dev->ifa_list); in pktgen_setup_inject()
/net/smc/
Dsmc_clc.c506 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local
509 if (!in_dev) in smc_clc_prfx_set4_rcu()
512 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
601 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local
604 if (!in_dev) in smc_clc_prfx_match4_rcu()
606 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
Dsmc_ib.c242 struct in_device *in_dev = __in_dev_get_rcu(ndev); in smc_ib_determine_gid_rcu() local
247 if (!in_dev) in smc_ib_determine_gid_rcu()
249 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_ib_determine_gid_rcu()
/net/atm/
Dclip.c581 struct in_device *in_dev; in clip_inet_event() local
584 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; in clip_inet_event()
591 netdev_notifier_info_init(&info, in_dev->dev); in clip_inet_event()
/net/sctp/
Dprotocol.c74 struct in_device *in_dev; in sctp_v4_copy_addrlist() local
79 if ((in_dev = __in_dev_get_rcu(dev)) == NULL) { in sctp_v4_copy_addrlist()
84 in_dev_for_each_ifa_rcu(ifa, in_dev) { in sctp_v4_copy_addrlist()
/net/ipv6/
Daddrconf.c3227 struct in_device *in_dev = __in_dev_get_rtnl(dev); in add_v4_addrs() local
3228 if (in_dev && (dev->flags & IFF_UP)) { in add_v4_addrs()
3232 in_dev_for_each_ifa_rtnl(ifa, in_dev) { in add_v4_addrs()

12