summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
935ce75)
Type: fix
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: Ib1eabbc87a573c660ac251602d631f167928259b
wg_main_t *wmp = &wg_main;
u8 private_key[NOISE_PUBLIC_KEY_LEN];
ip_address_t src;
wg_main_t *wmp = &wg_main;
u8 private_key[NOISE_PUBLIC_KEY_LEN];
ip_address_t src;
int rv = 0;
ip_address_decode2 (&mp->interface.src_ip, &src);
int rv = 0;
ip_address_decode2 (&mp->interface.src_ip, &src);
{
vl_api_wireguard_peer_add_reply_t *rmp;
wg_main_t *wmp = &wg_main;
{
vl_api_wireguard_peer_add_reply_t *rmp;
wg_main_t *wmp = &wg_main;
+ index_t peeri = INDEX_INVALID;
int ii, rv = 0;
ip_address_t endpoint;
int ii, rv = 0;
ip_address_t endpoint;
wg_if_index_by_port[port] = wg_if - wg_if_pool;
wg_if->port = port;
wg_if_index_by_port[port] = wg_if - wg_if_pool;
wg_if->port = port;
- struct noise_upcall upcall;
- upcall.u_remote_get = wg_remote_get;
- upcall.u_index_set = wg_index_set;
- upcall.u_index_drop = wg_index_drop;
+
+ /* *INDENT-OFF* */
+ struct noise_upcall upcall = {
+ .u_remote_get = wg_remote_get,
+ .u_index_set = wg_index_set,
+ .u_index_drop = wg_index_drop,
+ };
+ /* *INDENT-ON* */
noise_local_init (&wg_if->local, &upcall);
noise_local_set_private (&wg_if->local, private_key);
noise_local_init (&wg_if->local, &upcall);
noise_local_set_private (&wg_if->local, private_key);