code wiki / (root) / nx_netscope_dns_test.nx

nx_netscope_dns_test.nx

buildroot/runtime/nx_netscope_dns_test.nx

7932 B158 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic netscope
docsdependenciesstructsconstsfunctions

about

nx_netscope_dns_test.nx -- 1:1 KAT for NX-NETSCOPE L0+L1 (nx_netscope_dns.nx). Per the charter's KAT spec + the cardinal "1:1 proof, no proxy". HARD assertions are deterministic (no network needed); the live 8.8.8.8 probe is INFORMATIONAL (printed, not asserted) so the gate stays deterministic where internet is absent. T1 wire encode/decode: build_query tx_id round-trips T2 dead-IP 192.0.2.1 -> NXNS_TIMEOUT, bounded wall (THE no-hang proof) T3 WOULD-POISON race detector fires on a synthetic OK_A vs NXDOMAIN T4 PUBLIC-vs-RFC1918 hairpin detector fires on a public-IP OK_A T5 no false positive: when all resolvers AGREE (both OK_A) -> no race (live) 8.8.8.8 / example.com probe -- printed, not asserted expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_netscope_dns.nx nx_netscope_dns_test.nx

imports: nx_netscope_dns.nx

imported by: nobody (leaf or entry point)

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

main nx_dns_build_query nx_dns_put_u16_be nx_dns_encode_name nx_dns_get_u16_be nxns_put_dec sys_socket sys_now_ms sys_mmap sys_clock_gettime_mono nx_dns_recv_timed nxns_set_rcvtimeo_ms sys_mmap ↻ sys_setsockopt sys_recvfrom nxns_set_cell nx_dns_host_would_poison nx_dns_host_hairpin_risk nx_dns_probe_one sys_mmap ↻ nx_dns_build_query ↻ sys_socket ↻ sys_now_ms ↻ sys_sendto sys_close nx_dns_recv_timed ↻ nxns_dissect_response nx_dns_get_u16_be ↻ sys_mmap ↻ nx_dns_parse_response_a nx_dns_get_u16_be ↻ nx_dns_skip_name nxns_is_rfc1918 nxns_pollfd_set_fd nxns_pollfd_set_events sys_poll nxns_pollfd_get_fd nx_dns_probe_matrix_parall sys_mmap ↻ sys_now_ms ↻

structs

none

consts

none

functions

19func nxns_put_dec(n: i64) -> i64
called by 1: main
32func nxns_set_cell(cells: *ProbeCell, idx: i64, verdict: i64, ipv4: i64, rfc1918: i64) -> i64
called by 1: main
46func main() -> i64