|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
17 #ifndef __included_wg_peer_h__
18 #define __included_wg_peer_h__
142 return ((thread_id) ? thread_id
148 #endif // __included_wg_peer_h__
struct ip4_udp_header_t_ ip4_udp_header_t
u8 * format_wg_peer(u8 *s, va_list *va)
static u32 vlib_num_workers()
u8 * format_ip4_udp_header(u8 *s, va_list *va)
wg_peer_allowed_ip_t * allowed_ips
walk_rc_t wg_peer_if_table_change(wg_if_t *wgi, index_t peeri, void *data)
fib_node_index_t fib_entry_index
index_t wg_peer_walk(wg_peer_walk_cb_t fn, void *data)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u8 timers_dispatched[WG_N_TIMERS]
static u32 wg_peer_assign_thread(u32 thread_id)
static index_t wg_peer_get_by_adj_index(index_t ai)
walk_rc_t wg_peer_if_admin_state_change(wg_if_t *wgi, index_t peeri, void *data)
int wg_peer_remove(u32 peer_index)
walk_rc_t(* wg_peer_walk_cb_t)(index_t peeri, void *arg)
struct wg_peer_allowed_ip_t_ wg_peer_allowed_ip_t
u32 timer_handshake_attempts
int wg_peer_add(u32 tun_sw_if_index, const u8 public_key_64[NOISE_PUBLIC_KEY_LEN], u32 table_id, const ip46_address_t *endpoint, const fib_prefix_t *allowed_ips, u16 port, u16 persistent_keepalive, index_t *peer_index)
u32 rehandshake_interval_tick
struct wg_peer_endpoint_t_ wg_peer_endpoint_t
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
u32 fib_node_index_t
A typedef of a node index.
static u64 unix_time_now_nsec(void)
index_t * wg_peer_by_adj_index
vl_api_prefix_t allowed_ips[n_allowed_ips]
struct wg_peer_table_bind_ctx_t_ wg_peer_table_bind_ctx_t
vl_api_address_t endpoint
#define NOISE_PUBLIC_KEY_LEN
u32 new_handshake_interval_tick
u32 adj_index_t
An index for adjacencies.
static wg_peer_t * wg_peer_get(index_t peeri)
u16 persistent_keepalive_interval
tw_timer_wheel_16t_2w_512sl_t * timer_wheel
enum walk_rc_t_ walk_rc_t
Walk return code.
bool timer_need_another_keepalive
Aggregate type for a prefix.
cookie_maker_t cookie_maker
enum ip_address_family_t_ ip_address_family_t