fix the order of functions in main.c
@@ -2492,6 +2492,16 @@ static void on_accept(h2o_socket_t *listener, const char *err)
} while (--num_accepts != 0);
}
+struct init_ebpf_key_info_t {
+ struct sockaddr *local, *remote;
+};
+
+static int init_ebpf_key_from_info(h2o_ebpf_map_key_t *key, void *_info)
+{
+ struct init_ebpf_key_info_t *info = _info;
+ return h2o_socket_ebpf_init_key_raw(key, SOCK_DGRAM, info->local, info->remote);
+}
+
static int validate_token(h2o_http3_server_ctx_t *ctx, struct sockaddr *remote, ptls_iovec_t client_cid, ptls_iovec_t server_cid,
quicly_address_token_plaintext_t *token)
{
@@ -2522,16 +2532,6 @@ static int validate_token(h2o_http3_server_ctx_t *ctx, struct sockaddr *remote,
return 1;
}
-struct init_ebpf_key_info_t {
- struct sockaddr *local, *remote;
-};
-
-static int init_ebpf_key_from_info(h2o_ebpf_map_key_t *key, void *_info)
-{
- struct init_ebpf_key_info_t *info = _info;
- return h2o_socket_ebpf_init_key_raw(key, SOCK_DGRAM, info->local, info->remote);
-}
-
static h2o_quic_conn_t *on_http3_accept(h2o_quic_ctx_t *_ctx, quicly_address_t *destaddr, quicly_address_t *srcaddr,
quicly_decoded_packet_t *packet)
{
