Lines Matching refs:in_dev
711 struct in_device *in_dev; in __ip_do_redirect() local
730 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
731 if (!in_dev) in __ip_do_redirect()
735 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
740 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
741 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
743 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
771 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
838 struct in_device *in_dev; in ip_rt_send_redirect() local
845 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect()
846 if (!in_dev || !IN_DEV_TX_REDIRECTS(in_dev)) { in ip_rt_send_redirect()
850 log_martians = IN_DEV_LOG_MARTIANS(in_dev); in ip_rt_send_redirect()
902 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); in ip_error() local
911 if (!in_dev) in ip_error()
915 if (!IN_DEV_FORWARD(in_dev)) { in ip_error()
1477 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_mc() local
1484 if (!in_dev) in ip_route_input_mc()
1491 if (ipv4_is_loopback(saddr) && !IN_DEV_ROUTE_LOCALNET(in_dev)) in ip_route_input_mc()
1499 in_dev, &itag); in ip_route_input_mc()
1507 IN_DEV_CONF_GET(in_dev, NOPOLICY), false, false); in ip_route_input_mc()
1518 if (!ipv4_is_local_multicast(daddr) && IN_DEV_MFORWARD(in_dev)) in ip_route_input_mc()
1536 struct in_device *in_dev, in ip_handle_martian_source() argument
1543 if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) { in ip_handle_martian_source()
1593 struct in_device *in_dev, in __mkroute_input() argument
1611 in_dev->dev, in_dev, &itag); in __mkroute_input()
1613 ip_handle_martian_source(in_dev->dev, in_dev, skb, daddr, in __mkroute_input()
1620 if (out_dev == in_dev && err && IN_DEV_TX_REDIRECTS(out_dev) && in __mkroute_input()
1634 if (out_dev == in_dev && in __mkroute_input()
1635 IN_DEV_PROXY_ARP_PVLAN(in_dev) == 0) { in __mkroute_input()
1664 IN_DEV_CONF_GET(in_dev, NOPOLICY), in __mkroute_input()
1739 struct in_device *in_dev, in ip_mkroute_input() argument
1755 return __mkroute_input(skb, res, in_dev, daddr, saddr, tos); in ip_mkroute_input()
1773 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_slow() local
1785 if (!in_dev) in ip_route_input_slow()
1820 if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)) in ip_route_input_slow()
1823 if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)) in ip_route_input_slow()
1840 if (!IN_DEV_FORWARD(in_dev)) in ip_route_input_slow()
1850 0, dev, in_dev, &itag); in ip_route_input_slow()
1856 if (!IN_DEV_FORWARD(in_dev)) { in ip_route_input_slow()
1863 err = ip_mkroute_input(skb, &res, &fl4, in_dev, daddr, saddr, tos); in ip_route_input_slow()
1872 in_dev, &itag); in ip_route_input_slow()
1895 IN_DEV_CONF_GET(in_dev, NOPOLICY), false, do_cache); in ip_route_input_slow()
1936 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_route_input_slow()
1950 ip_handle_martian_source(dev, in_dev, skb, daddr, saddr); in ip_route_input_slow()
1973 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_noref() local
1975 if (in_dev) { in ip_route_input_noref()
1976 int our = ip_check_mc_rcu(in_dev, daddr, saddr, in ip_route_input_noref()
1982 IN_DEV_MFORWARD(in_dev)) in ip_route_input_noref()
2008 struct in_device *in_dev; in __mkroute_output() local
2013 in_dev = __in_dev_get_rcu(dev_out); in __mkroute_output()
2014 if (!in_dev) in __mkroute_output()
2017 if (likely(!IN_DEV_ROUTE_LOCALNET(in_dev))) in __mkroute_output()
2037 if (!ip_check_mc_rcu(in_dev, fl4->daddr, fl4->saddr, in __mkroute_output()
2100 IN_DEV_CONF_GET(in_dev, NOPOLICY), in __mkroute_output()
2101 IN_DEV_CONF_GET(in_dev, NOXFRM), in __mkroute_output()
2120 if (IN_DEV_MFORWARD(in_dev) && in __mkroute_output()
2628 void ip_rt_multicast_event(struct in_device *in_dev) in ip_rt_multicast_event() argument
2630 rt_cache_flush(dev_net(in_dev->dev)); in ip_rt_multicast_event()