Lines Matching refs:route
1159 _cleanup_(route_freep) Route *route = NULL; in wireguard_verify()
1161 r = route_new(&route); in wireguard_verify()
1165 route->family = ipmask->family; in wireguard_verify()
1166 route->dst = ipmask->ip; in wireguard_verify()
1167 route->dst_prefixlen = ipmask->cidr; in wireguard_verify()
1168 route->scope = RT_SCOPE_UNIVERSE; in wireguard_verify()
1169 route->protocol = RTPROT_STATIC; in wireguard_verify()
1170 route->table = peer->route_table_set ? peer->route_table : w->route_table; in wireguard_verify()
1171 … route->priority = peer->route_priority_set ? peer->route_priority : w->route_priority; in wireguard_verify()
1172 if (route->priority == 0 && route->family == AF_INET6) in wireguard_verify()
1173 route->priority = IP6_RT_PRIO_USER; in wireguard_verify()
1174 route->source = NETWORK_CONFIG_SOURCE_STATIC; in wireguard_verify()
1176 r = set_ensure_consume(&w->routes, &route_hash_ops, TAKE_PTR(route)); in wireguard_verify()