UDP-WG Implementation
Loading...
Searching...
No Matches
wireguard::config Struct Reference

A WireGuard Configuration. More...

#include <wireguard.h>

Public Attributes

crypto::string timestamp = 12
 
crypto::string identity = 4
 
crypto::string self = 4
 
crypto::keypair keys
 
uint64_t send = 0
 
uint64_t recv = 0
 
connection src = {}
 
bool on = false
 
crypto::string cookie
 
uint64_t cookie_timestamp
 

Detailed Description

A WireGuard Configuration.

Remarks
For every WireGuard connection, both the server and client create a config object that contains all the information needed to talk; the server supplies this to the newly spawned WG Thread, whereas the client saves it within wireguard_server value in the Main Thread. This includes everything from timestamps to indicate a rekey, identities, send/recv, the source, and cookies.

The documentation for this struct was generated from the following file: