code wiki / (root) / nx_edgeprobe_diag.nx

nx_edgeprobe_diag.nx

buildroot/runtime/nx_edgeprobe_diag.nx

3277 B61 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_edgeprobe_diag.nx -- ONE-SHOT diagnostic. v2: send a MODERN TLS 1.3 ClientHello (supported_versions + key_share, SNI=nishifamily.com) to 127.0.0.1:8443 and dump the reply. v1 proved the LEGACY 1.2 hello gets read_r=0 (clean close) from the edge. If v2 yields a TLS record (byte 20..23) the edge ServerHellos a modern hello and this is the exact hex to transplant into hp_build_ch. Throwaway; retire after.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_edgeprobe_diag.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ep_hexv ep_p sys_write ↻ ep_n sys_mmap ↻ sys_write ↻ sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap ep_sockaddr sys_connect sys_close sys_write ↻ sys_read

structs

none

consts

6const K_MAGIC_8443: i64 = 8443
7const K_MAGIC_4096: i64 = 4096
8const K_MAGIC_4095: i64 = 4095

functions

10func ep_p(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 ep_n(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
16func ep_hexv(c: i64) -> i64 { if c >= 97 { return c - 87 } return c - 48 }
called by 1: main
17func ep_sockaddr(buf: *u8, port: i64) -> i64
called by 1: main
24func main() -> i64