FD.io VPP  v20.09-64-g4f7b92f0a
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 26 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 45 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 61 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 85 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 144 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 207 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 132 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 156 of file wireguard_send.c.

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