Skip to main content

Crate veilway_wg

Crate veilway_wg 

Source
Expand description

Shared WireGuard core (boringtun multi-peer wrapper). Owned by the server task, reused by the Windows client later.

Modules§

ws
WireGuard datagrams over WebSocket. One WG datagram = one binary WS message.

Structs§

Bound
What a datagram did that came in on a session bound to one peer, see Wg::recv_bound.
Peer
Wg
Multi-peer WireGuard endpoint. Pure state machine, it never touches sockets.

Constants§

MAX_PACKET
Largest datagram or IP packet we ever hand to boringtun.

Functions§

decode_key
dst_address
Destination address of an IPv4/IPv6 packet.
encode_key
generate_key
Fresh clamped x25519 private key, same shape as wg genkey.
public_key
src_address
Source address of an IPv4/IPv6 packet (boringtun only exposes the destination).