Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
wireguard_peer_config Struct Reference

Wireguard peer configuration information. More...

#include <zephyr/net/wireguard.h>

Data Fields

const char * public_key
 Public key in base64 format.
const uint8_tpreshared_key
 Optional pre-shared key (32 bytes), set to NULL if not to be used.
uint8_t timestamp [(sizeof(uint64_t)+sizeof(uint32_t))]
 What is the largest timestamp we have seen during handshake in order to avoid replays.
struct net_sockaddr_storage endpoint_ip
 End-point address (when connecting).
struct wireguard_allowed_ip allowed_ip [WIREGUARD_MAX_SRC_IPS]
 Allowed IP address.
int keepalive_interval
 Default keep alive time for this peer in seconds.

Detailed Description

Wireguard peer configuration information.

Stores the Wireguard VPN peer connection information.

Field Documentation

◆ allowed_ip

struct wireguard_allowed_ip wireguard_peer_config::allowed_ip[WIREGUARD_MAX_SRC_IPS]

Allowed IP address.

◆ endpoint_ip

struct net_sockaddr_storage wireguard_peer_config::endpoint_ip

End-point address (when connecting).

◆ keepalive_interval

int wireguard_peer_config::keepalive_interval

Default keep alive time for this peer in seconds.

Set to 0 to use the default value.

◆ preshared_key

const uint8_t* wireguard_peer_config::preshared_key

Optional pre-shared key (32 bytes), set to NULL if not to be used.

◆ public_key

const char* wireguard_peer_config::public_key

Public key in base64 format.

◆ timestamp

uint8_t wireguard_peer_config::timestamp[(sizeof(uint64_t)+sizeof(uint32_t))]

What is the largest timestamp we have seen during handshake in order to avoid replays.


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