code wiki / _hdl_build / nx_sni_router_gate.nx

nx_sni_router_gate.nx

buildroot/runtime/_hdl_build/nx_sni_router_gate.nx

5208 B97 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic sni
docsdependenciesstructsconstsfunctions

about

nx_sni_router_gate.nx -- e2e gate for the SNI router: fork an echo backend + the router, then as a client push [ClientHello + marker] through the router and verify the marker round-trips -> proves peek + route + replay + duplex splice on loopback (no live deploy, no reachability dependency). license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_http_server.nx nx_sni_extract.nx nx_tls13_ext.nx nx_sni_router.nx nx_sni_router_gate.nx

imports: nx_syscalls.nxnx_http_server.nxnx_sni_extract.nxnx_tls13_ext.nxnx_sni_router.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_fork run_echo sys_mmap nx_http_server_addr_any nx_http_server_make_sockad nx_http_server_listen sys_ignore_sigpipe sys_mmap ↻ sys_socket sys_mmap ↻ sys_setsockopt sys_bind sys_close sys_listen sys_exit sys_accept_with_addr sys_read sys_write ↻ sys_close ↻ sys_exit ↻ sr_serve sys_mmap ↻ pr_load sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read ↻ sys_close ↻ nx_http_server_addr_any ↻ nx_http_server_listen ↻ sys_write ↻ sys_set_socket_timeout sys_mmap ↻ sys_setsockopt ↻ sys_munmap

structs

none

consts

none

functions

10func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
11func g_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
20func build_ch(host: *u8, host_len: i64, out: *u8) -> i64
40func run_echo(port: i64) -> i64
58func main() -> i64