Searched refs:nh_gw (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/net/ipv4/
H A Dfib_semantics.c262 nh->nh_gw != onh->nh_gw || for_nexthops()
346 nh->nh_gw == gw && hlist_for_each_entry()
436 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); fib_detect_death()
492 nexthop_nh->nh_gw = nla ? nla_get_in_addr(nla) : 0; change_nexthops()
639 (!cfg->fc_gw || cfg->fc_gw == fi->fib_nh->nh_gw)) fib_nh_match()
665 if (nla && nla_get_in_addr(nla) != nh->nh_gw) for_nexthops()
732 if (nh->nh_gw) { fib_check_nh()
745 addr_type = inet_addr_type_dev_table(net, dev, nh->nh_gw); fib_check_nh()
759 .daddr = nh->nh_gw, fib_check_nh()
914 nh->nh_gw, fib_info_update_nh_saddr()
1074 if (cfg->fc_gw && fi->fib_nh->nh_gw != cfg->fc_gw)
1103 nh->nh_gw = cfg->fc_gw;
1139 if (nhs != 1 || nh->nh_gw)
1257 if (fi->fib_nh->nh_gw && fib_dump_info()
1258 nla_put_in_addr(skb, RTA_GATEWAY, fi->fib_nh->nh_gw)) fib_dump_info()
1303 if (nh->nh_gw && for_nexthops()
1304 nla_put_in_addr(skb, RTA_GATEWAY, nh->nh_gw)) for_nexthops()
1460 if (!next_fi->fib_nh[0].nh_gw || hlist_for_each_entry_rcu()
H A Droute.c1406 if (nh->nh_gw && nh->nh_scope == RT_SCOPE_LINK) { rt_set_nexthop()
1407 rt->rt_gateway = nh->nh_gw; rt_set_nexthop()
2083 !(nh->nh_gw && __mkroute_output()
H A Dfib_trie.c2554 if (fi && fi->fib_nh->nh_gw) fib_flag_trans()
2605 fi->fib_nh->nh_gw, flags, 0, 0, fib_route_seq_show()
/linux-4.4.14/include/net/
H A Ddn_fib.h24 __le16 nh_gw; member in struct:dn_fib_nh
49 #define DN_FIB_RES_GW(res) (DN_FIB_RES_NH(res).nh_gw)
H A Dip_fib.h89 __be32 nh_gw; member in struct:fib_nh
180 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw)
/linux-4.4.14/net/decnet/
H A Ddn_fib.c122 nh->nh_gw != onh->nh_gw || for_nexthops()
182 nh->nh_gw = gw_attr ? nla_get_le16(gw_attr) : 0; change_nexthops()
195 if (nh->nh_gw) { dn_fib_check_nh()
204 if (dnet_addr_type(nh->nh_gw) != RTN_UNICAST) dn_fib_check_nh()
217 fld.daddr = nh->nh_gw; dn_fib_check_nh()
322 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY]))
331 nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]);
341 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]);
359 if (nhs != 1 || nh->nh_gw)
H A Ddn_table.c238 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) dn_fib_nh_match()
263 if (gw && gw != nh->nh_gw) for_nexthops()
336 if (fi->fib_nh->nh_gw && dn_fib_dump_info()
337 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) dn_fib_dump_info()
360 if (nh->nh_gw && for_nexthops()
361 nla_put_le16(skb, RTA_GATEWAY, nh->nh_gw) < 0) for_nexthops()
H A Ddn_route.c958 return (daddr&~mask)|res->fi->fib_nh->nh_gw; dn_fib_rules_map_destination()
/linux-4.4.14/drivers/net/ethernet/rocker/
H A Drocker.c4011 has_gw = !!nh->nh_gw; rocker_port_fib_ipv4()
4015 nh->nh_gw, &index); rocker_port_fib_ipv4()

Completed in 304 milliseconds