Home
last modified time | relevance | path

Searched refs:new_gw (Results 1 – 1 of 1) sorted by relevance

/net/ipv4/
Droute.c747 __be32 new_gw = icmp_hdr(skb)->un.gateway; in __ip_do_redirect() local
774 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
775 ipv4_is_multicast(new_gw) || ipv4_is_lbcast(new_gw) || in __ip_do_redirect()
776 ipv4_is_zeronet(new_gw)) in __ip_do_redirect()
780 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
782 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
785 if (inet_addr_type(net, new_gw) != RTN_UNICAST) in __ip_do_redirect()
789 n = __ipv4_neigh_lookup(rt->dst.dev, (__force u32)new_gw); in __ip_do_redirect()
791 n = neigh_create(&arp_tbl, &new_gw, rt->dst.dev); in __ip_do_redirect()
801 update_or_create_fnhe(nhc, fl4->daddr, new_gw, in __ip_do_redirect()
[all …]