code wiki / _hdl_build / _pe_dchan_route.nx
_pe_dchan_route.nx
buildroot/runtime/_hdl_build/_pe_dchan_route.nx
about
_pe_dchan_route.nx -- X-ROOM-DC-002 rung-2 INTEGRATION: client-side private routing + ordering
over the nx_signaling_v2 DUMB BROADCAST relay (the relay forwards to everyone; PRIVACY is achieved
CLIENT-SIDE by the recipient filter). Two ACTIONS:
dr_route(to_id, my_id) -> 1 accept iff the frame is addressed to me, else 0 ignore.
dr_seq_ok(prev, new) -> 1 iff per-from seq is strictly monotonic (ordered; rejects replay/regress).
Self-validating E2E gate (3 peers A=1,B=2,C=3; A sends a D frame to B): B ACCEPTS, C IGNORES
(private achieved on a broadcast relay) + a monotonic per-from seq stream is accepted while a
regression is rejected (neg-control = the ordering check actually discriminates, no false-green).
FOUNDED on _pe_dchan (frame layer, DONE) + the DC-003 reliability data plane (_pe_dchan_reorder).
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| none |
functions
| 12 | func rt_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 13 | func rt_n(fd: i64, v: i64) -> i64 |
| 20 | func dr_route(to_id: i64, my_id: i64) -> i64 { if to_id == my_id { return 1 } return 0 } called by 1: main |
| 22 | func dr_seq_ok(prev: i64, new: i64) -> i64 { if new > prev { return 1 } return 0 } called by 1: main |
| 23 | func main(argc: i64, argv: *i64) -> i64 |