Skip to main content

Module stun_observe

Module stun_observe 

Source
Expand description

RFC 5389 STUN Binding observe for the SocialWebNet internet path.

Lives in p2p/ (UDP/IP). This is labelled transition, not Native Independent. A STUN reflexive address is an observation, not a signed route or a listen proof.

Structs§

ObserveReport
Two STUN samples plus classification.

Enums§

MappingClass
RFC 4787 mapping behaviour inferred from two STUN servers on one socket.
ProbeRole
Recommended probe role from mapping class. Inbound listen is never inferred.

Constants§

MAGIC
STUN magic cookie (RFC 5389).

Functions§

classify_samples
Classify two already-parsed samples (no network).
encode_binding_success_v4
Encode a Binding success with IPv4 XOR-MAPPED-ADDRESS (test fixture / oracle).
internet_two_host_handshake_executed
A two-host internet WireGuard handshake has not been executed in-process.
labelled_wireguard_transition
SocialWebNet internet path is the labelled WireGuard transition, not Ethernet.
observe_mapping
Query two STUN servers on the same socket and classify mapping.
parse_xor_mapped_v4
Parse XOR-MAPPED-ADDRESS (IPv4) from a STUN success response.
recommend_role
Address-dependent mapping cannot publish a STUN address as a listen locator.
stun_bind
Send one Binding request on sock toward server and parse XOR-MAPPED-ADDRESS.