Fix ubpf external functions constants and adds find_stream and parse_stream_header
@@ -50,8 +50,8 @@ register_functions(struct ubpf_vm *vm)
ubpf_register(vm, 0x24, "send", send);
ubpf_register(vm, 0x25, "inet_aton", inet_aton);
- ubpf_register(vm, 0x3a, "my_htons", my_htons);
- ubpf_register(vm, 0x3b, "my_ntohs", my_ntohs);
+ ubpf_register(vm, 0x2a, "my_htons", my_htons);
+ ubpf_register(vm, 0x2b, "my_ntohs", my_ntohs);
/* Specific QUIC functions */
ubpf_register(vm, 0x30, "picoquic_varint_decode", picoquic_varint_decode);
@@ -63,6 +63,8 @@ register_functions(struct ubpf_vm *vm)
ubpf_register(vm, 0x36, "picoquic_getaddrs_v4", picoquic_getaddrs_v4);
ubpf_register(vm, 0x37, "picoquic_compare_connection_id", picoquic_compare_connection_id);
ubpf_register(vm, 0x38, "picoquic_compare_addr", picoquic_compare_addr);
+ ubpf_register(vm, 0x39, "picoquic_parse_stream_header", picoquic_parse_stream_header);
+ ubpf_register(vm, 0x3a, "picoquic_find_stream", picoquic_find_stream);
}
static void *readfile(const char *path, size_t maxlen, size_t *len)
