Home
last modified time | relevance | path

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

/openbmc/linux/net/ipv4/
H A Droute.c742 __be32 new_gw = icmp_hdr(skb)->un.gateway; in __ip_do_redirect() local
769 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
770 ipv4_is_multicast(new_gw) || ipv4_is_lbcast(new_gw) || in __ip_do_redirect()
771 ipv4_is_zeronet(new_gw)) 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()
780 if (inet_addr_type(net, new_gw) != RTN_UNICAST) in __ip_do_redirect()
784 n = __ipv4_neigh_lookup(rt->dst.dev, (__force u32)new_gw); in __ip_do_redirect()
786 n = neigh_create(&arp_tbl, &new_gw, rt->dst.dev); in __ip_do_redirect()
796 update_or_create_fnhe(nhc, fl4->daddr, new_gw, in __ip_do_redirect()
[all …]