Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c145 nh->nh_gw != onh->nh_gw || in nh_comp()
187 if (nh->nh_dev == dev && nh->nh_gw == gw && in ip_fib_check_default()
241 nh->nh_gw = fib_get_attr32(RTNH_DATA(nhp), attrlen, RTA_GATEWAY); in fib_get_nhs()
267 (!rta->rta_gw || memcmp(rta->rta_gw, &fi->fib_nh->nh_gw, 4) == 0)) in fib_nh_match()
288 if (gw && gw != nh->nh_gw) in fib_nh_match()
351 if (nh->nh_gw) { in fib_check_nh()
364 if (inet_addr_type(nh->nh_gw) != RTN_UNICAST) in fib_check_nh()
376 key.dst = nh->nh_gw; in fib_check_nh()
484 if (rta->rta_gw && memcmp(&fi->fib_nh->nh_gw, rta->rta_gw, 4)) in fib_create_info()
498 memcpy(&nh->nh_gw, rta->rta_gw, 4); in fib_create_info()
[all …]
Dfib_hash.c347 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); in fib_detect_death()
392 if (!next_fi->fib_nh[0].nh_gw || next_fi->fib_nh[0].nh_scope != RT_SCOPE_LINK) in fn_hash_select_default()
Dfib_rules.c251 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in fib_rules_map_destination()
/linux-2.4.37.9/net/decnet/
Ddn_fib.c117 nh->nh_gw != onh->nh_gw || in dn_fib_nh_comp()
184 nh->nh_gw = dn_fib_get_attr16(RTNH_DATA(nhp), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
197 if (nh->nh_gw) { in dn_fib_check_nh()
217 key.dst = nh->nh_gw; in dn_fib_check_nh()
291 if (rta->rta_gw && memcmp(&fi->fib_nh->nh_gw, rta->rta_gw, 2)) in dn_fib_create_info()
298 memcpy(&nh->nh_gw, rta->rta_gw, 2); in dn_fib_create_info()
316 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
Ddn_table.c239 (!rta->rta_gw || memcmp(rta->rta_gw, &fi->fib_nh->nh_gw, 2) == 0)) in dn_fib_nh_match()
261 if (gw && gw != nh->nh_gw) in dn_fib_nh_match()
294 if (fi->fib_nh->nh_gw) in dn_fib_dump_info()
295 RTA_PUT(skb, RTA_GATEWAY, 2, &fi->fib_nh->nh_gw); in dn_fib_dump_info()
313 if (nh->nh_gw) in dn_fib_dump_info()
314 RTA_PUT(skb, RTA_GATEWAY, 2, &nh->nh_gw); in dn_fib_dump_info()
750 if (fi && fi->fib_nh->nh_gw) in dn_fib_flag_trans()
767 fi->fib_nh->nh_gw, flags, 0, 0, fi->fib_priority, in dn_fib_node_get_info()
/linux-2.4.37.9/include/net/
Ddn_fib.h51 u32 nh_gw; member
73 #define DN_FIB_RES_GW(res) (DN_FIB_RES_NH(res).nh_gw)
Dip_fib.h50 u32 nh_gw; member
112 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw)