Lines Matching refs:nh_gw
145 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()
513 memcpy(&fi->fib_nh->nh_gw, rta->rta_gw, 4); in fib_create_info()
531 if (nhs != 1 || nh->nh_gw) in fib_create_info()
676 if (fi->fib_nh->nh_gw) in fib_dump_info()
677 RTA_PUT(skb, RTA_GATEWAY, 4, &fi->fib_nh->nh_gw); in fib_dump_info()
696 if (nh->nh_gw) in fib_dump_info()
697 RTA_PUT(skb, RTA_GATEWAY, 4, &nh->nh_gw); in fib_dump_info()
1013 if (fi && fi->fib_nh->nh_gw) in fib_flag_trans()
1030 fi->fib_nh->nh_gw, flags, 0, 0, fi->fib_priority, in fib_node_get_info()