FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
wireguard_timer.c File Reference
+ Include dependency graph for wireguard_timer.c:

Go to the source code of this file.

Data Structures

struct  wg_timers_args
 

Functions

static u32 get_random_u32_max (u32 max)
 
static void stop_timer (wg_peer_t *peer, u32 timer_id)
 
static void start_timer (wg_peer_t *peer, u32 timer_id, u32 interval_ticks)
 
static void * start_timer_thread_fn (void *arg)
 
static void start_timer_from_mt (u32 peer_idx, u32 timer_id, u32 interval_ticks)
 
static u32 timer_ticks_left (vlib_main_t *vm, f64 init_time_sec, u32 interval_ticks)
 
static void wg_expired_retransmit_handshake (vlib_main_t *vm, wg_peer_t *peer)
 
static void wg_expired_send_keepalive (vlib_main_t *vm, wg_peer_t *peer)
 
static void wg_expired_send_persistent_keepalive (vlib_main_t *vm, wg_peer_t *peer)
 
static void wg_expired_new_handshake (vlib_main_t *vm, wg_peer_t *peer)
 
static void wg_expired_zero_key_material (vlib_main_t *vm, wg_peer_t *peer)
 
void wg_timers_any_authenticated_packet_traversal (wg_peer_t *peer)
 
void wg_timers_any_authenticated_packet_sent (wg_peer_t *peer)
 
void wg_timers_handshake_initiated (wg_peer_t *peer)
 
void wg_timers_session_derived (wg_peer_t *peer)
 
void wg_timers_data_sent (wg_peer_t *peer)
 
void wg_timers_data_received (wg_peer_t *peer)
 
void wg_timers_handshake_complete (wg_peer_t *peer)
 
void wg_timers_any_authenticated_packet_received (wg_peer_t *peer)
 
static void expired_timer_callback (u32 *expired_timers)
 
void wg_timer_wheel_init ()
 
static uword wg_timer_mngr_fn (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
void wg_timers_stop (wg_peer_t *peer)
 

Variables

static vlib_node_registration_t wg_timer_mngr_node
 (constructor) VLIB_REGISTER_NODE (wg_timer_mngr_node) More...
 

Function Documentation

◆ expired_timer_callback()

static void expired_timer_callback ( u32 expired_timers)
static

Definition at line 279 of file wireguard_timer.c.

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

◆ get_random_u32_max()

static u32 get_random_u32_max ( u32  max)
static

Definition at line 22 of file wireguard_timer.c.

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

◆ start_timer()

static void start_timer ( wg_peer_t peer,
u32  timer_id,
u32  interval_ticks 
)
static

Definition at line 40 of file wireguard_timer.c.

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

◆ start_timer_from_mt()

static void start_timer_from_mt ( u32  peer_idx,
u32  timer_id,
u32  interval_ticks 
)
static

Definition at line 71 of file wireguard_timer.c.

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

◆ start_timer_thread_fn()

static void* start_timer_thread_fn ( void *  arg)
static

Definition at line 61 of file wireguard_timer.c.

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

◆ stop_timer()

static void stop_timer ( wg_peer_t peer,
u32  timer_id 
)
static

Definition at line 30 of file wireguard_timer.c.

+ Here is the caller graph for this function:

◆ timer_ticks_left()

static u32 timer_ticks_left ( vlib_main_t vm,
f64  init_time_sec,
u32  interval_ticks 
)
inlinestatic

Definition at line 83 of file wireguard_timer.c.

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

◆ wg_expired_new_handshake()

static void wg_expired_new_handshake ( vlib_main_t vm,
wg_peer_t peer 
)
static

Definition at line 168 of file wireguard_timer.c.

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

◆ wg_expired_retransmit_handshake()

static void wg_expired_retransmit_handshake ( vlib_main_t vm,
wg_peer_t peer 
)
static

Definition at line 93 of file wireguard_timer.c.

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

◆ wg_expired_send_keepalive()

static void wg_expired_send_keepalive ( vlib_main_t vm,
wg_peer_t peer 
)
static

Definition at line 124 of file wireguard_timer.c.

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

◆ wg_expired_send_persistent_keepalive()

static void wg_expired_send_persistent_keepalive ( vlib_main_t vm,
wg_peer_t peer 
)
static

Definition at line 147 of file wireguard_timer.c.

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

◆ wg_expired_zero_key_material()

static void wg_expired_zero_key_material ( vlib_main_t vm,
wg_peer_t peer 
)
static

Definition at line 182 of file wireguard_timer.c.

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

◆ wg_timer_mngr_fn()

static uword wg_timer_mngr_fn ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 341 of file wireguard_timer.c.

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

◆ wg_timer_wheel_init()

void wg_timer_wheel_init ( )

Definition at line 330 of file wireguard_timer.c.

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

◆ wg_timers_any_authenticated_packet_received()

void wg_timers_any_authenticated_packet_received ( wg_peer_t peer)

Definition at line 271 of file wireguard_timer.c.

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

◆ wg_timers_any_authenticated_packet_sent()

void wg_timers_any_authenticated_packet_sent ( wg_peer_t peer)

Definition at line 210 of file wireguard_timer.c.

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

◆ wg_timers_any_authenticated_packet_traversal()

void wg_timers_any_authenticated_packet_traversal ( wg_peer_t peer)

Definition at line 199 of file wireguard_timer.c.

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

◆ wg_timers_data_received()

void wg_timers_data_received ( wg_peer_t peer)

Definition at line 249 of file wireguard_timer.c.

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

◆ wg_timers_data_sent()

void wg_timers_data_sent ( wg_peer_t peer)

Definition at line 237 of file wireguard_timer.c.

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

◆ wg_timers_handshake_complete()

void wg_timers_handshake_complete ( wg_peer_t peer)

Definition at line 264 of file wireguard_timer.c.

+ Here is the caller graph for this function:

◆ wg_timers_handshake_initiated()

void wg_timers_handshake_initiated ( wg_peer_t peer)

Definition at line 216 of file wireguard_timer.c.

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

◆ wg_timers_session_derived()

void wg_timers_session_derived ( wg_peer_t peer)

Definition at line 227 of file wireguard_timer.c.

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

◆ wg_timers_stop()

void wg_timers_stop ( wg_peer_t peer)

Definition at line 358 of file wireguard_timer.c.

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

Variable Documentation

◆ wg_timer_mngr_node

static vlib_node_registration_t wg_timer_mngr_node
static
Initial value:
= {
.function = wg_timer_mngr_fn,
.name =
"wg-timer-manager",
}
static uword wg_timer_mngr_fn(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)

(constructor) VLIB_REGISTER_NODE (wg_timer_mngr_node)

Definition at line 276 of file wireguard_timer.c.