FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
wireguard_send.c File Reference
+ Include dependency graph for wireguard_send.c:

Go to the source code of this file.

Data Structures

struct  wg_send_args_t
 

Functions

static int ip46_enqueue_packet (vlib_main_t *vm, u32 bi0, int is_ip6)
 
static void wg_buffer_prepend_rewrite (vlib_buffer_t *b0, const wg_peer_t *peer)
 
static bool wg_create_buffer (vlib_main_t *vm, const wg_peer_t *peer, const u8 *packet, u32 packet_len, u32 *bi)
 
bool wg_send_handshake (vlib_main_t *vm, wg_peer_t *peer, bool is_retry)
 
static void * wg_send_handshake_thread_fn (void *arg)
 
void wg_send_handshake_from_mt (u32 peer_idx, bool is_retry)
 
bool wg_send_keepalive (vlib_main_t *vm, wg_peer_t *peer)
 
bool wg_send_handshake_response (vlib_main_t *vm, wg_peer_t *peer)
 

Function Documentation

◆ ip46_enqueue_packet()

static int ip46_enqueue_packet ( vlib_main_t vm,
u32  bi0,
int  is_ip6 
)
static

Definition at line 25 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_buffer_prepend_rewrite()

static void wg_buffer_prepend_rewrite ( vlib_buffer_t b0,
const wg_peer_t peer 
)
static

Definition at line 44 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_create_buffer()

static bool wg_create_buffer ( vlib_main_t vm,
const wg_peer_t peer,
const u8 packet,
u32  packet_len,
u32 bi 
)
static

Definition at line 60 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_send_handshake()

bool wg_send_handshake ( vlib_main_t vm,
wg_peer_t peer,
bool  is_retry 
)

Definition at line 84 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_send_handshake_from_mt()

void wg_send_handshake_from_mt ( u32  peer_idx,
bool  is_retry 
)

Definition at line 143 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_send_handshake_response()

bool wg_send_handshake_response ( vlib_main_t vm,
wg_peer_t peer 
)

Definition at line 206 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_send_handshake_thread_fn()

static void* wg_send_handshake_thread_fn ( void *  arg)
static

Definition at line 131 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wg_send_keepalive()

bool wg_send_keepalive ( vlib_main_t vm,
wg_peer_t peer 
)

Definition at line 155 of file wireguard_send.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: