Lines Matching refs:in_dev
709 struct in_device *in_dev; in __ip_do_redirect() local
728 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
729 if (!in_dev) in __ip_do_redirect()
733 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
738 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
739 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
741 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
769 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
836 struct in_device *in_dev; in ip_rt_send_redirect() local
842 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect()
843 if (!in_dev || !IN_DEV_TX_REDIRECTS(in_dev)) { in ip_rt_send_redirect()
847 log_martians = IN_DEV_LOG_MARTIANS(in_dev); in ip_rt_send_redirect()
898 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); in ip_error() local
907 if (!in_dev) in ip_error()
911 if (!IN_DEV_FORWARD(in_dev)) { in ip_error()
1449 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_mc() local
1455 if (!in_dev) in ip_route_input_mc()
1462 if (likely(!IN_DEV_ROUTE_LOCALNET(in_dev))) in ip_route_input_mc()
1471 in_dev, &itag); in ip_route_input_mc()
1476 IN_DEV_CONF_GET(in_dev, NOPOLICY), false, false); in ip_route_input_mc()
1500 if (!ipv4_is_local_multicast(daddr) && IN_DEV_MFORWARD(in_dev)) in ip_route_input_mc()
1518 struct in_device *in_dev, in ip_handle_martian_source() argument
1525 if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) { in ip_handle_martian_source()
1575 struct in_device *in_dev, in __mkroute_input() argument
1594 in_dev->dev, in_dev, &itag); in __mkroute_input()
1596 ip_handle_martian_source(in_dev->dev, in_dev, skb, daddr, in __mkroute_input()
1603 if (out_dev == in_dev && err && IN_DEV_TX_REDIRECTS(out_dev) && in __mkroute_input()
1617 if (out_dev == in_dev && in __mkroute_input()
1618 IN_DEV_PROXY_ARP_PVLAN(in_dev) == 0) { in __mkroute_input()
1647 IN_DEV_CONF_GET(in_dev, NOPOLICY), in __mkroute_input()
1679 struct in_device *in_dev, in ip_mkroute_input() argument
1688 return __mkroute_input(skb, res, in_dev, daddr, saddr, tos); in ip_mkroute_input()
1706 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_slow() local
1717 if (!in_dev) in ip_route_input_slow()
1744 if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)) in ip_route_input_slow()
1747 if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)) in ip_route_input_slow()
1763 if (!IN_DEV_FORWARD(in_dev)) in ip_route_input_slow()
1773 0, dev, in_dev, &itag); in ip_route_input_slow()
1779 if (!IN_DEV_FORWARD(in_dev)) { in ip_route_input_slow()
1786 err = ip_mkroute_input(skb, &res, &fl4, in_dev, daddr, saddr, tos); in ip_route_input_slow()
1795 in_dev, &itag); in ip_route_input_slow()
1818 IN_DEV_CONF_GET(in_dev, NOPOLICY), false, do_cache); in ip_route_input_slow()
1865 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_route_input_slow()
1881 ip_handle_martian_source(dev, in_dev, skb, daddr, saddr); in ip_route_input_slow()
1904 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_route_input_noref() local
1906 if (in_dev) { in ip_route_input_noref()
1907 int our = ip_check_mc_rcu(in_dev, daddr, saddr, in ip_route_input_noref()
1913 IN_DEV_MFORWARD(in_dev)) in ip_route_input_noref()
1939 struct in_device *in_dev; in __mkroute_output() local
1944 in_dev = __in_dev_get_rcu(dev_out); in __mkroute_output()
1945 if (!in_dev) in __mkroute_output()
1948 if (likely(!IN_DEV_ROUTE_LOCALNET(in_dev))) in __mkroute_output()
1968 if (!ip_check_mc_rcu(in_dev, fl4->daddr, fl4->saddr, in __mkroute_output()
2019 IN_DEV_CONF_GET(in_dev, NOPOLICY), in __mkroute_output()
2020 IN_DEV_CONF_GET(in_dev, NOXFRM), in __mkroute_output()
2049 if (IN_DEV_MFORWARD(in_dev) && in __mkroute_output()
2551 void ip_rt_multicast_event(struct in_device *in_dev) in ip_rt_multicast_event() argument
2553 rt_cache_flush(dev_net(in_dev->dev)); in ip_rt_multicast_event()