|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
68 "LISP-src for [%d,%U]",
125 return (src_fib_index);
167 if (n_entries == 0 || (have_default && n_entries == 1))
239 best_priority =
paths[0].priority;
286 return fib_entry_index;
293 u8 found = 0, ip_version;
301 if (lfei[0] == new_lfei)
336 memcpy (&ippref, &lfe->
key->
lcl.
ippref, sizeof (ippref));
341 memcpy (&ippref, &lfe->
key->
rmt.
ippref, sizeof (ippref));
440 return (p1->
priority - p2->priority);
456 path->priority =
a->locator_pairs[
index].priority;
457 path->weight =
a->locator_pairs[
index].weight;
488 key.fwd_entry_index = fwd_entry_index;
495 memcpy (key_copy, &
key,
sizeof (*key_copy));
531 return VNET_API_ERROR_INVALID_VALUE;
545 lfe->
type = (
a->is_negative ?
614 return VNET_API_ERROR_INVALID_VALUE;
625 kv->key[0] = (((
u64) bd_index) << 48) |
mac_to_u64 (dst_mac);
692 if (BV (clib_bihash_search) (&lgm->l2_fib, &kv, &
value) == 0)
693 old_val =
value.value;
705 #define L2_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024)
706 #define L2_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20)
738 lfe->
l2.child_index);
770 return VNET_API_ERROR_INVALID_VALUE;
848 return VNET_API_ERROR_INVALID_VALUE;
859 lfe->
type = (
a->is_negative ?
862 lfe->
l2.eid_bd_id =
a->bd_id;
863 lfe->
l2.eid_bd_index = bd_indexp[0];
881 lfe->
l2.path_list_index =
888 lfe->
l2.child_index =
920 kv.key[0] = spi_si_net_order;
931 return &lfe->
nsh.choice;
955 kv.key[0] = clib_host_to_net_u32 (spi_si_host_order);
958 if (BV (clib_bihash_search) (&lgm->nsh_fib, &kv, &
value) == 0)
959 old_val =
value.value;
971 #define NSH_FIB_DEFAULT_HASH_NUM_BUCKETS (64 * 1024)
972 #define NSH_FIB_DEFAULT_HASH_MEMORY_SIZE (32<<20)
999 lfe->
nsh.child_index);
1030 return VNET_API_ERROR_INVALID_VALUE;
1123 return VNET_API_ERROR_INVALID_VALUE;
1134 lfe->
type = (
a->is_negative ?
1154 lfe->
nsh.path_list_index =
1161 lfe->
nsh.child_index =
1215 return (&(lfe->
node));
1257 return VNET_API_ERROR_LISP_DISABLED;
1292 if (
cm->counters == NULL)
1311 key.fwd_entry_index = fwd_entry_index;
1312 key.tunnel_index =
ti;
1319 key_copy = (
void *) (hp->
key);
1328 u32 fwd_entry_index)
1384 s =
format (s,
"adj:[%U]\n",
1407 s =
format (s,
"VNI:%d VRF:%d EID: %U -> %U [index:%d]",
1415 s =
format (s,
"\n Negative - action:%U",
1422 s =
format (s,
"\n via:");
1434 s =
format (s,
" fib-path-list:%d\n", lfe->
l2.path_list_index);
1438 s =
format (s,
" fib-path-list:%d\n", lfe->
nsh.path_list_index);
1494 .path =
"show gpe entry",
1495 .short_help =
"show gpe entry vni <vni> vrf <vrf> [leid <leid>] reid <reid>",
1552 memcpy (&e.reid, &lfe->
key->
rmt, sizeof (e.reid));
1553 memcpy (&e.leid, &lfe->
key->
lcl, sizeof (e.leid));
lisp_api_gpe_fwd_entry_t * vnet_lisp_gpe_fwd_entries_get_by_vni(u32 vni)
ip_address_t remote_rloc
remote RLOC.
static u32 lisp_nsh_fib_add_del_entry(u32 spi_si_host_order, u32 lfei, u8 is_add)
Add/del NSH FIB entry.
u16 lb_n_buckets
number of buckets in the load-balance.
index_t dpoi_index
the index of objects of that type
u8 is_src_dst
Follows src/dst or dst only forwarding policy.
#define DPO_INVALID
An initialiser for DPOs declared on the stack.
fib_node_index_t fib_table_entry_special_dpo_add(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source, fib_entry_flag_t flags, const dpo_id_t *dpo)
Add a 'special' entry to the FIB that links to the DPO passed A special entry is an entry that the FI...
fib_node_t node
This object joins the FIB control plane graph to receive updates to for changes to the graph.
enum fib_node_back_walk_rc_t_ fib_node_back_walk_rc_t
Return code from a back walk function.
struct lisp_gpe_fwd_entry_t_::@706::@712 l2
Fields relevant to an L2 entry.
index_t lisp_adj
The adjacency constructed for the locator pair.
void fib_table_entry_delete(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source)
Delete a FIB entry.
vl_api_prefix_t src_prefix
vl_api_mac_address_t src_mac
clib_error_t * lisp_gpe_fwd_entry_init(vlib_main_t *vm)
u8 frp_weight
[un]equal cost path weight
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
index_t lisp_l2_fib_lookup(lisp_gpe_main_t *lgm, u16 bd_index, u8 src_mac[6], u8 dst_mac[6])
Lookup L2 SD FIB entry.
static index_t create_fib_entries(lisp_gpe_fwd_entry_t *lfe)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
static void clib_mem_free(void *p)
vlib_main_t vlib_node_runtime_t * node
A FIB graph nodes virtual function table.
index_t load_balance_create(u32 n_buckets, dpo_proto_t lb_proto, flow_hash_config_t fhc)
#define FIB_NODE_INDEX_INVALID
#define gid_address_ippref(_a)
u32 fib_table_get_num_entries(u32 fib_index, fib_protocol_t proto, fib_source_t source)
Return the number of entries in the FIB added by a given source.
#define L2_FIB_DEFAULT_HASH_MEMORY_SIZE
ip46_address_t frp_addr
The next-hop address.
enum lisp_gpe_fwd_entry_format_flag_t_ lisp_gpe_fwd_entry_format_flag_t
#define hash_get_pair(h, key)
@ FIB_FORW_CHAIN_TYPE_ETHERNET
Contribute an object that is to be used to forward Ethernet packets.
#define vlib_call_init_function(vm, x)
void vlib_validate_combined_counter(vlib_combined_counter_main_t *cm, u32 index)
validate a combined counter
#define pool_put(P, E)
Free an object E in pool P.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u32 frp_sw_if_index
The interface.
const dpo_id_t * lisp_cp_dpo_get(dpo_proto_t proto)
#define NSH_FIB_DEFAULT_HASH_MEMORY_SIZE
@ FIB_PATH_LIST_FLAG_NONE
@ FIB_ENTRY_FLAG_EXCLUSIVE
struct lisp_gpe_fwd_entry_t_ * lisp_fwd_entry_pool
A Pool of all LISP forwarding entries.
dpo_proto_t frp_proto
The protocol of the address below.
static int add_nsh_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Add LISP NSH forwarding entry.
index_t dpoi_index
used for getting load balance statistics
tunnel_lookup_t nsh_ifaces
static fib_node_index_t ip_src_fib_add_route_w_dpo(u32 src_fib_index, const ip_prefix_t *src_prefix, const dpo_id_t *src_dpo)
Add route to IP4 or IP6 SRC FIB.
u8 * placeholder_stats_pool
static int del_l2_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Delete LISP L2 forwarding entry.
static void del_l2_fwd_entry_i(lisp_gpe_main_t *lgm, lisp_gpe_fwd_entry_t *lfe)
int clib_bihash_search_inline_2(clib_bihash *h, clib_bihash_kv *search_key, clib_bihash_kv *valuep)
Search a bi-hash table.
@ FIB_FORW_CHAIN_TYPE_NSH
Contribute an object that is to be used to forward NSH packets.
u32 lisp_gpe_tenant_find_or_create(u32 vni)
Find or create a tenant for the given VNI.
static uword max_log2(uword x)
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
#define hash_set(h, key, value)
static lisp_gpe_main_t * vnet_lisp_gpe_get_main()
static void nsh_fib_init(lisp_gpe_main_t *lgm)
static u8 * format_lisp_gpe_fwd_entry(u8 *s, va_list *ap)
u8 * format_negative_mapping_action(u8 *s, va_list *args)
#define STRUCT_OFFSET_OF(t, f)
@ LISP_GPE_FWD_ENTRY_FORMAT_DETAIL
void fib_table_entry_special_remove(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source)
Remove a 'special' entry from the FIB.
dpo_id_t l2_lb_cp_lkup
Load-balance for a miss in the table.
#define pool_foreach(VAR, POOL)
Iterate through pool.
static u32 lisp_l2_fib_add_del_entry(u16 bd_index, u8 src_mac[6], u8 dst_mac[6], const dpo_id_t *dpo, u8 is_add)
Add/del L2 SD FIB entry.
load_balance_main_t load_balance_main
The one instance of load-balance main.
static u32 ip_dst_fib_add_route(u32 dst_fib_index, const ip_prefix_t *dst_prefix)
Add route to IP4 or IP6 Destination FIB.
u8 * format_fid_address(u8 *s, va_list *args)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define L2_FIB_DEFAULT_HASH_NUM_BUCKETS
void clib_bihash_init(clib_bihash *h, char *name, u32 nbuckets, uword memory_size)
initialize a bounded index extensible hash table
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
static int add_ip_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Add/Delete LISP IP forwarding entry.
@ LISP_GPE_ADJ_FORMAT_FLAG_NONE
u8 weight
[UE]CMP weigt for the path
static u8 * format_lisp_fwd_path(u8 *s, va_list *ap)
Combined counter to hold both packets and byte differences.
u32 fib_table_find_or_create_and_lock(fib_protocol_t proto, u32 table_id, fib_source_t src)
Get the index of the FIB for a Table-ID.
static void gpe_native_fwd_add_del_lfe(lisp_gpe_fwd_entry_t *lfe, u8 is_add)
#define fid_addr_type(_a)
int vnet_lisp_flush_stats(void)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static vlib_cli_command_t lisp_gpe_fwd_entry_show_command
(constructor) VLIB_CLI_COMMAND (lisp_gpe_fwd_entry_show_command)
static int lisp_gpe_fwd_entry_path_sort(void *a1, void *a2)
u32 fib_node_index_t
A typedef of a node index.
#define vec_foreach_index(var, v)
Iterate over vector indices.
static int del_ip_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Add/Delete LISP IP forwarding entry.
static void vlib_zero_combined_counter(vlib_combined_counter_main_t *cm, u32 index)
Clear a combined counter Clears the set of per-thread counters.
int vnet_lisp_gpe_get_fwd_stats(vnet_lisp_gpe_add_del_fwd_entry_args_t *a, vlib_counter_t *c)
static fib_node_back_walk_rc_t lisp_gpe_fib_node_back_walk(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
Function invoked during a backwalk of the FIB graph.
#define hash_set_mem(h, key, value)
void lisp_gpe_adjacency_unlock(index_t lai)
BVT(clib_bihash)
The table of adjacencies indexed by the rewrite string.
u32 * vnet_lisp_gpe_get_fwd_entry_vnis(void)
vl_api_prefix_t dst_prefix
lisp_gpe_main_t lisp_gpe_main
LISP-GPE global state.
static const dpo_id_t * load_balance_get_bucket_i(const load_balance_t *lb, u32 bucket)
sll srl srl sll sra u16x4 i
fib_route_path_t * native_fwd_rpath[2]
Native fwd data structures.
#define NSH_FIB_DEFAULT_HASH_NUM_BUCKETS
vnet_feature_config_main_t * cm
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
const void * fib_entry_get_source_data(fib_node_index_t fib_entry_index, fib_source_t source)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
#define VLIB_CLI_COMMAND(x,...)
void dpo_stack_from_node(u32 child_node_index, dpo_id_t *dpo, const dpo_id_t *parent)
Stack one DPO object on another, and thus establish a child parent relationship.
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
fib_protocol_t ip_address_to_46(const ip_address_t *addr, ip46_address_t *a)
u32 sw_if_index
The SW IF index of the sub-interface this adjacency uses.
u32 fib_path_list_child_add(fib_node_index_t path_list_index, fib_node_type_t child_type, fib_node_index_t child_index)
@ LOOKUP_TABLE_FROM_CONFIG
lisp_gpe_fwd_entry_key_t * key
The Entry's key: {lEID,rEID,vni}.
uword * lisp_stats_index_by_key
void fib_path_list_contribute_forwarding(fib_node_index_t path_list_index, fib_forward_chain_type_t fct, fib_path_list_fwd_flags_t flags, dpo_id_t *dpo)
static void lisp_gpe_fwd_entry_mk_paths(lisp_gpe_fwd_entry_t *lfe, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
void fib_node_register_type(fib_node_type_t type, const fib_node_vft_t *vft)
fib_node_register_type
@ FIB_NODE_BACK_WALK_CONTINUE
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
dpo_proto_t fib_proto_to_dpo(fib_protocol_t fib_proto)
static void del_ip_fwd_entry_i(lisp_gpe_main_t *lgm, lisp_gpe_fwd_entry_t *lfe)
u8 * format_dpo_id(u8 *s, va_list *args)
Format a DPO_id_t oject.
u8 vnet_lisp_gpe_enable_disable_status(void)
Check if LISP-GPE is enabled.
static fib_route_path_t * lisp_gpe_mk_fib_paths(const lisp_fwd_path_t *paths)
int vnet_lisp_gpe_add_del_fwd_entry(vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u32 *hw_if_indexp)
Forwarding entry create/remove dispatcher.
u32 vlib_combined_counter_n_counters(const vlib_combined_counter_main_t *cm)
The number of counters (not the number of per-thread counters)
void load_balance_set_bucket(index_t lbi, u32 bucket, const dpo_id_t *next)
fib_node_index_t fib_table_lookup_exact_match(u32 fib_index, const fib_prefix_t *prefix)
Perfom an exact match in the non-forwarding table.
@ DPO_LOAD_BALANCE
load-balancing over a choice of [un]equal cost paths
static void vlib_get_combined_counter(const vlib_combined_counter_main_t *cm, u32 index, vlib_counter_t *result)
Get the value of a combined counter, never called in the speed path Scrapes the entire set of per-thr...
@ LISP_GPE_FWD_ENTRY_TYPE_NORMAL
#define vec_free(V)
Free vector's memory (no header).
static void lisp_del_adj_stats(lisp_gpe_main_t *lgm, u32 fwd_entry_index, u32 ti)
const lisp_gpe_adjacency_t * lisp_gpe_adjacency_get(index_t lai)
vlib_combined_counter_main_t lbm_to_counters
void dpo_copy(dpo_id_t *dst, const dpo_id_t *src)
atomic copy a data-plane object.
lisp_fwd_path_t * paths
When the type is 'normal' The RLOC pair that form the route's paths.
static lisp_gpe_fwd_entry_t * find_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a, lisp_gpe_fwd_entry_key_t *key)
static clib_error_t * lisp_gpe_fwd_entry_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static void del_nsh_fwd_entry_i(lisp_gpe_main_t *lgm, lisp_gpe_fwd_entry_t *lfe)
#define hash_get_mem(h, key)
fib_entry_t * fib_entry_get(fib_node_index_t index)
A path on which to forward lisp traffic.
int fib_entry_is_sourced(fib_node_index_t fib_entry_index, fib_source_t source)
description fragment has unexpected format
A collection of combined counters.
dpo_id_t fe_lb
The load-balance used for forwarding.
u32 tenant
The tenant the entry belongs to.
u32 fib_table_create_and_lock(fib_protocol_t proto, fib_source_t src, const char *const fmt,...)
Create a new table with no table ID.
#define VLIB_INIT_FUNCTION(x)
static void lisp_gpe_l2_update_fwding(lisp_gpe_fwd_entry_t *lfe)
Construct and insert the forwarding information used by an L2 entry.
negative_fwd_actions_e action
When the type is negative.
lisp_gpe_fwd_entry_format_flag_t_
A representation of a path as described by a route producer.
u8 * format_fib_prefix(u8 *s, va_list *args)
#define vec_foreach(var, vec)
Vector iterator.
static load_balance_t * load_balance_get(index_t lbi)
#define fid_addr_ippref(_a)
int clib_bihash_add_del(clib_bihash *h, clib_bihash_kv *add_v, int is_add)
Add or delete a (key,value) pair from a bi-hash table.
index_t lisp_gpe_adjacency_find_or_create_and_lock(const locator_pair_t *pair, u32 overlay_table_id, u32 vni)
@ LISP_GPE_FWD_ENTRY_FORMAT_NONE
static void ip_src_dst_fib_del_route(u32 src_fib_index, const ip_prefix_t *src_prefix, u32 dst_fib_index, const ip_prefix_t *dst_prefix)
Del route to IP4 or IP6 SD FIB.
void vnet_lisp_gpe_del_fwd_counters(vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u32 fwd_entry_index)
fib_protocol_t fp_proto
protocol type
static fib_node_t * lisp_gpe_fwd_entry_get_fib_node(fib_node_index_t index)
Get a fib_node_t struct from the index of a LISP fwd entry.
void fib_path_list_child_remove(fib_node_index_t path_list_index, u32 si)
void dpo_unlock(dpo_id_t *dpo)
Release a reference counting lock on the DPO.
static u64 mac_to_u64(u8 *m)
An node in the FIB graph.
#define vec_sort_with_function(vec, f)
Sort a vector using the supplied element comparison function.
struct lisp_gpe_fwd_entry_t_::@706::@713 nsh
Fields relevant to an NSH entry.
static lisp_gpe_fwd_entry_t * lisp_gpe_fwd_entry_from_fib_node(fib_node_t *node)
conver from the embedded fib_node_t struct to the LSIP entry
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
const dpo_id_t * drop_dpo_get(dpo_proto_t proto)
Common utility functions for IPv4, IPv6 and L2 LISP-GPE adjacencys.
clib_error_t * lisp_cp_dpo_module_init(vlib_main_t *vm)
u32 src_fib_index
The SRC-FIB index for created for anding source-route entries.
u32 eid_table_id
The VRF ID.
#define gid_address_type(_a)
static void lisp_gpe_nsh_update_fwding(lisp_gpe_fwd_entry_t *lfe)
Construct and insert the forwarding information used by an NSH entry.
@ LISP_GPE_FWD_ENTRY_TYPE_NEGATIVE
#define hash_unset_mem(h, key)
const dpo_id_t * lisp_nsh_fib_lookup(lisp_gpe_main_t *lgm, u32 spi_si_net_order)
Lookup NSH SD FIB entry.
static void make_mac_fib_key(BVT(clib_bihash_kv) *kv, u16 bd_index, u8 src_mac[6], u8 dst_mac[6])
#define ip_prefix_version(_a)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
const static fib_node_vft_t lisp_fwd_vft
Virtual function table to register with FIB for the LISP type.
void fib_table_unlock(u32 fib_index, fib_protocol_t proto, fib_source_t source)
Take a reference counting lock on the table.
@ FIB_PATH_LIST_FWD_FLAG_NONE
static int add_l2_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Add LISP L2 forwarding entry.
const dpo_id_t * nsh_cp_lkup
Context passed between object during a back walk.
#define clib_warning(format, args...)
static void l2_fib_init(lisp_gpe_main_t *lgm)
u32 tunnel_index
The index of the LISP GPE tunnel that provides the transport in the underlay.
@ FIB_NODE_TYPE_LISP_GPE_FWD_ENTRY
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
u32 eid_fib_index
The FIB index for the overlay, i.e.
u8 * format_lisp_gpe_adjacency(u8 *s, va_list *args)
u16 lb_n_buckets_minus_1
number of buckets in the load-balance - 1.
vlib_combined_counter_main_t counters
void dpo_set(dpo_id_t *dpo, dpo_type_t type, dpo_proto_t proto, index_t index)
Set/create a DPO ID The DPO will be locked.
static fib_node_index_t ip_src_fib_add_route(u32 src_fib_index, const ip_prefix_t *src_prefix, const lisp_fwd_path_t *paths)
Add route to IP4 or IP6 SRC FIB.
uword * lisp_gpe_fwd_entries
DB of all forwarding entries.
void gid_to_dp_address(gid_address_t *g, dp_address_t *d)
fib_node_index_t fib_path_list_create(fib_path_list_flags_t flags, const fib_route_path_t *rpaths)
void lookup_dpo_add_or_lock_w_fib_index(fib_node_index_t fib_index, dpo_proto_t proto, lookup_cast_t cast, lookup_input_t input, lookup_table_t table_config, dpo_id_t *dpo)
lisp_gpe_fwd_entry_type_t type
The forwarding entry type.
static void delete_fib_entries(lisp_gpe_fwd_entry_t *lfe)
void dpo_reset(dpo_id_t *dpo)
reset a DPO ID The DPO will be unlocked.
uword * bd_index_by_bd_id
static void * clib_mem_alloc(uword size)
uword * hw_if_index_by_dp_table
Lookup lisp-gpe interfaces by dp table (eg.
Aggregate type for a prefix.
vl_api_fib_path_type_t type
void vnet_lisp_gpe_fwd_entry_flush(void)
Flush all the forwrding entries.
#define vec_del1(v, i)
Delete the element at index I.
fib_node_index_t fib_table_entry_update(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source, fib_entry_flag_t flags, fib_route_path_t *paths)
Update an entry to have a new set of paths.
void fib_entry_set_source_data(fib_node_index_t fib_entry_index, fib_source_t source, const void *data)
void vnet_lisp_gpe_add_fwd_counters(vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u32 fwd_entry_index)
static int del_nsh_fwd_entry(lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a)
Delete LISP NSH forwarding entry.
void ip_prefix_to_fib_prefix(const ip_prefix_t *ip_prefix, fib_prefix_t *fib_prefix)
convert from a LISP to a FIB prefix
static void lisp_gpe_fwd_entry_fib_node_last_lock_gone(fib_node_t *node)
An indication from the graph that the last lock has gone.
vl_api_wireguard_peer_flags_t flags