Skip to main content

Crate tunnet_common

Crate tunnet_common 

Source

Re-exports§

pub use recording::RECORDING_ALPN;
pub use send::SEND_ALPN;

Modules§

duration
Compact human duration parsing (e.g. 3d, 12h, 30m).
ipv6
Tenant-scoped IPv6 addresses derived from endpoint identity.
policy
recording
Session recording wire protocol (ALPN tunnet/recording/1).
relay
Agent ↔ public-relay reverse-tunnel wire protocol (ALPN tunnet/relay/1).
send
File-transfer offer protocol (ALPN tunnet/send/1).
signing
ws

Structs§

ActiveServe
DeviceProfile
DnsConfig
EndpointSnapshot
EnrollRequest
EnrollResponse
EnrollStatusRequest
ExitNodeInfo
Exit node advertisement in the snapshot.
HostnameRoute
Ipv6PeerEntry
NetworkMembershipSnapshot
PeerEntry
PollRequest
PortMapping
Public TCP port mapping on the relay edge.
RedirectRule
Path-based redirect on the agent (multi-port / mesh HTTPS).
RegisterRequest
SnapshotDelta
SubnetRoute
TunnelConfig

Enums§

EnrollStatusResponse
ProtocolError
SplitTunnelMode

Constants§

HDR_ENDPOINT_ID
Header the agent sends with every authenticated request.
HDR_SIGNATURE
HDR_TIMESTAMP
HDR_TRACE_ID
MAX_SKEW_SECS
Maximum allowed clock skew for signature validation.
RELAY_ALPN
ALPN for agent ↔ public relay reverse tunnels.
TUNNEL_ALPN
ALPN identifier for our tunnel protocol (mesh datagrams).

Functions§

match_redirect
Pick the first matching redirect rule with optional mesh target IP.
match_redirect_port
Pick the first matching redirect rule (caller should sort by priority desc).
mdns_relay_topic_hex
Gossip topic for mDNS/DNS-SD service relay records on a network.
network_topic_hex
path_matches
Match an HTTP path against a redirect pattern (/api/* or exact).
validate_endpoint_id
validate_network_name

Type Aliases§

EndpointIdHex