Go to the source code of this file.
|
static u8 * | format_wg_if_name (u8 *s, va_list *args) |
|
u8 * | format_wg_if (u8 *s, va_list *args) |
|
index_t | wg_if_find_by_sw_if_index (u32 sw_if_index) |
|
static walk_rc_t | wg_if_find_peer_by_public_key (index_t peeri, void *data) |
|
static noise_remote_t * | wg_remote_get (const uint8_t public[NOISE_PUBLIC_KEY_LEN]) |
|
static uint32_t | wg_index_set (noise_remote_t *remote) |
|
static void | wg_index_drop (uint32_t key) |
|
static clib_error_t * | wg_if_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags) |
|
void | wg_if_update_adj (vnet_main_t *vnm, u32 sw_if_index, adj_index_t ai) |
|
| VNET_DEVICE_CLASS (wg_if_device_class) |
|
| VNET_HW_INTERFACE_CLASS (wg_hw_interface_class) |
|
static u32 | wg_if_instance_alloc (u32 want) |
|
static int | wg_if_instance_free (u32 instance) |
|
int | wg_if_create (u32 user_instance, const u8 private_key[NOISE_PUBLIC_KEY_LEN], u16 port, const ip_address_t *src_ip, u32 *sw_if_indexp) |
|
int | wg_if_delete (u32 sw_if_index) |
|
void | wg_if_peer_add (wg_if_t *wgi, index_t peeri) |
|
void | wg_if_peer_remove (wg_if_t *wgi, index_t peeri) |
|
void | wg_if_walk (wg_if_walk_cb_t fn, void *data) |
|
index_t | wg_if_peer_walk (wg_if_t *wgi, wg_if_peer_walk_cb_t fn, void *data) |
|
static void | wg_if_table_bind_v4 (ip4_main_t *im, uword opaque, u32 sw_if_index, u32 new_fib_index, u32 old_fib_index) |
|
static void | wg_if_table_bind_v6 (ip6_main_t *im, uword opaque, u32 sw_if_index, u32 new_fib_index, u32 old_fib_index) |
|
static clib_error_t * | wg_if_module_init (vlib_main_t *vm) |
|
◆ WG_ITF_MAX_INSTANCE
#define WG_ITF_MAX_INSTANCE (16 * 1024) |
◆ format_wg_if()
u8* format_wg_if |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_wg_if_name()
static u8* format_wg_if_name |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ VNET_DEVICE_CLASS()
VNET_DEVICE_CLASS |
( |
wg_if_device_class |
| ) |
|
◆ VNET_HW_INTERFACE_CLASS()
VNET_HW_INTERFACE_CLASS |
( |
wg_hw_interface_class |
| ) |
|
◆ wg_if_admin_up_down()
◆ wg_if_create()
int wg_if_create |
( |
u32 |
user_instance, |
|
|
const u8 |
private_key[NOISE_PUBLIC_KEY_LEN], |
|
|
u16 |
port, |
|
|
const ip_address_t * |
src_ip, |
|
|
u32 * |
sw_if_indexp |
|
) |
| |
◆ wg_if_delete()
int wg_if_delete |
( |
u32 |
sw_if_index | ) |
|
◆ wg_if_find_by_sw_if_index()
index_t wg_if_find_by_sw_if_index |
( |
u32 |
sw_if_index | ) |
|
◆ wg_if_find_peer_by_public_key()
◆ wg_if_instance_alloc()
static u32 wg_if_instance_alloc |
( |
u32 |
want | ) |
|
|
static |
◆ wg_if_instance_free()
static int wg_if_instance_free |
( |
u32 |
instance | ) |
|
|
static |
◆ wg_if_module_init()
◆ wg_if_peer_add()
◆ wg_if_peer_remove()
◆ wg_if_peer_walk()
◆ wg_if_table_bind_v4()
static void wg_if_table_bind_v4 |
( |
ip4_main_t * |
im, |
|
|
uword |
opaque, |
|
|
u32 |
sw_if_index, |
|
|
u32 |
new_fib_index, |
|
|
u32 |
old_fib_index |
|
) |
| |
|
static |
◆ wg_if_table_bind_v6()
static void wg_if_table_bind_v6 |
( |
ip6_main_t * |
im, |
|
|
uword |
opaque, |
|
|
u32 |
sw_if_index, |
|
|
u32 |
new_fib_index, |
|
|
u32 |
old_fib_index |
|
) |
| |
|
static |
◆ wg_if_update_adj()
◆ wg_if_walk()
◆ wg_index_drop()
static void wg_index_drop |
( |
uint32_t |
key | ) |
|
|
static |
◆ wg_index_set()
◆ wg_remote_get()
static noise_remote_t* wg_remote_get |
( |
const uint8_t |
public[NOISE_PUBLIC_KEY_LEN] | ) |
|
|
static |
◆ wg_if_index_by_port
◆ wg_if_index_by_sw_if_index
index_t* wg_if_index_by_sw_if_index |
|
static |
◆ wg_if_instances
◆ wg_if_pool