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).