Lines Matching refs:gw_family

127                 siphash24_compress(&route->gw_family, sizeof(route->gw_family), state);  in route_hash_func()
128 if (IN_SET(route->gw_family, AF_INET, AF_INET6)) { in route_hash_func()
129 … siphash24_compress(&route->gw, FAMILY_ADDRESS_SIZE(route->gw_family), state); in route_hash_func()
181 r = CMP(a->gw_family, b->gw_family); in route_compare_func()
185 if (IN_SET(a->gw_family, AF_INET, AF_INET6)) { in route_compare_func()
349 route->gw_family = nh->family; in route_apply_nexthop()
363 route->gw_family = m->gateway.family; in route_apply_multipath_route()
565 if (in_addr_is_set(route->gw_family, &route->gw)) { in log_route_debug()
566 (void) in_addr_to_string(route->gw_family, &route->gw, &gw_alloc); in log_route_debug()
569 if (route->gw_family == AF_INET) in log_route_debug()
571 else if (route->gw_family == AF_INET6) in log_route_debug()
616 if (in_addr_is_set(route->gw_family, &route->gw) && route->nexthop_id == 0) { in route_set_netlink_message()
617 if (route->gw_family == route->family) { in route_set_netlink_message()
618 … r = netlink_message_append_in_addr_union(req, RTA_GATEWAY, route->gw_family, &route->gw); in route_set_netlink_message()
623 .family = route->gw_family, in route_set_netlink_message()
1239 assert(!in_addr_is_set(route->gw_family, &route->gw)); in route_configure()
1288 … if (!gateway_is_ready(link, FLAGS_SET(route->flags, RTNH_F_ONLINK), route->gw_family, &route->gw)) in route_is_ready_to_configure()
1724 tmp->gw_family = tmp->family; in manager_rtnl_process_route()
1733 tmp->gw_family = via.family; in manager_rtnl_process_route()
1986 n->gw_family = AF_UNSPEC; in config_parse_gateway()
1999 n->gw_family = AF_INET; in config_parse_gateway()
2006 n->gw_family = AF_INET6; in config_parse_gateway()
2013 r = in_addr_from_string_auto(rvalue, &n->gw_family, &n->gw); in config_parse_gateway()
2761 if (route->gw_family == AF_UNSPEC) { in route_section_verify()
2781 route->gw_family = route->family; in route_section_verify()
2784 if (route->gw_family == AF_INET && !FLAGS_SET(network->dhcp, ADDRESS_FAMILY_IPV4)) in route_section_verify()
2790 if (route->gw_family == AF_INET6 && !network->ipv6_accept_ra) in route_section_verify()
2799 route->family = route->gw_family; in route_section_verify()
2811 if (route->family == AF_INET6 && route->gw_family == AF_INET) in route_section_verify()
2832 !in_addr_is_set(route->gw_family, &route->gw) && in route_section_verify()
2846 if (route->gateway_onlink < 0 && in_addr_is_set(route->gw_family, &route->gw) && in route_section_verify()
2871 in_addr_is_set(route->gw_family, &route->gw)) && in route_section_verify()
2880 in_addr_is_set(route->gw_family, &route->gw) || in route_section_verify()