diff options
Diffstat (limited to 'src/wireguard/mod.rs')
-rw-r--r-- | src/wireguard/mod.rs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/wireguard/mod.rs b/src/wireguard/mod.rs index ac7d9be..5310e96 100644 --- a/src/wireguard/mod.rs +++ b/src/wireguard/mod.rs @@ -1,17 +1,29 @@ +/* The wireguard sub-module represents a full, pure, WireGuard implementation: + * + * The WireGuard device described here does not depend on particular IO implementations + * or UAPI, and can be instantiated in unit-tests with the dummy IO implementation. + * + * The code at this level serves to "glue" the handshake state-machine + * and the crypto-key router code together, + * e.g. every WireGuard peer consists of a handshake and router peer. + */ mod constants; -mod timers; -mod wireguard; - mod handshake; mod peer; mod queue; mod router; +mod timers; mod types; +mod wireguard; +mod workers; #[cfg(test)] mod tests; +// represents a peer pub use peer::Peer; + +// represents a WireGuard interface pub use wireguard::Wireguard; #[cfg(test)] @@ -21,5 +33,4 @@ pub use types::dummy_keypair; use super::platform::dummy; use super::platform::{tun, udp, Endpoint}; -use peer::PeerInner; use types::KeyPair; |