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

Network Management event information structure Used to pass information on network event NET_EVENT_VPN_PEER_ADD when CONFIG_NET_MGMT_EVENT_INFO enabled and event generator pass the information. More...

#include <zephyr/net/wireguard.h>

Data Fields

uint32_t id
 VPN peer identifier.
const char * public_key
 VPN peer public key.
struct net_sockaddrendpoint
 VPN peer endpoint.
struct wireguard_allowed_ipallowed_ip [WIREGUARD_MAX_SRC_IPS+1]
 VPN peer allowed IP address (null terminated list).
int keepalive_interval
 VPN peer keepalive interval.

Detailed Description

Network Management event information structure Used to pass information on network event NET_EVENT_VPN_PEER_ADD when CONFIG_NET_MGMT_EVENT_INFO enabled and event generator pass the information.

The network event NET_EVENT_VPN_PEER_DEL will pass the peer id only as a pointer in the event info. Note that the pointers to the peer information are only valid during the event handling and should not be used after the event is processed.

Field Documentation

◆ allowed_ip

struct wireguard_allowed_ip* net_event_vpn_peer::allowed_ip[WIREGUARD_MAX_SRC_IPS+1]

VPN peer allowed IP address (null terminated list).

◆ endpoint

struct net_sockaddr* net_event_vpn_peer::endpoint

VPN peer endpoint.

◆ id

uint32_t net_event_vpn_peer::id

VPN peer identifier.

◆ keepalive_interval

int net_event_vpn_peer::keepalive_interval

VPN peer keepalive interval.

◆ public_key

const char* net_event_vpn_peer::public_key

VPN peer public key.


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