diff options
author | Matt Dunwoodie <ncon@noconroy.net> | 2021-03-18 16:21:57 +1100 |
---|---|---|
committer | Matt Dunwoodie <ncon@noconroy.net> | 2021-04-04 16:21:39 +1000 |
commit | 658c1911f0a52e3cd74e119f367d7502a7e953dd (patch) | |
tree | 2018c5c94441e73fc0a5542d8076bc7d64b34cca | |
parent | Expand on key clearing message (diff) | |
download | wireguard-openbsd-658c1911f0a52e3cd74e119f367d7502a7e953dd.tar.xz wireguard-openbsd-658c1911f0a52e3cd74e119f367d7502a7e953dd.zip |
Satisfy my ordering of struct elements and prototoypes
-rw-r--r-- | sys/net/if_wg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c index a31909d5fbe..d5b463ec60d 100644 --- a/sys/net/if_wg.c +++ b/sys/net/if_wg.c @@ -308,11 +308,11 @@ void wg_timers_event_data_sent(struct wg_timers *); void wg_timers_event_data_received(struct wg_timers *); void wg_timers_event_any_authenticated_packet_sent(struct wg_timers *); void wg_timers_event_any_authenticated_packet_received(struct wg_timers *); +void wg_timers_event_any_authenticated_packet_traversal(struct wg_timers *); void wg_timers_event_handshake_initiated(struct wg_timers *); void wg_timers_event_handshake_responded(struct wg_timers *); void wg_timers_event_handshake_complete(struct wg_timers *); void wg_timers_event_session_derived(struct wg_timers *); -void wg_timers_event_any_authenticated_packet_traversal(struct wg_timers *); void wg_timers_event_want_initiation(struct wg_timers *); void wg_timers_event_reset_handshake_last_sent(struct wg_timers *); @@ -2612,8 +2612,6 @@ wg_clone_create(struct if_clone *ifc, int unit) local_upcall.u_index_set = wg_index_set; local_upcall.u_index_drop = wg_index_drop; - TAILQ_INIT(&sc->sc_peer_seq); - /* sc_if is initialised after everything else */ arc4random_buf(&sc->sc_secret, sizeof(sc->sc_secret)); @@ -2644,6 +2642,8 @@ wg_clone_create(struct if_clone *ifc, int unit) M_NOWAIT, &sc->sc_peer_mask)) == NULL) goto ret_04; + TAILQ_INIT(&sc->sc_peer_seq); + mtx_init(&sc->sc_index_mtx, IPL_NET); if ((sc->sc_index = hashinit(HASHTABLE_INDEX_SIZE, M_DEVBUF, M_NOWAIT, &sc->sc_index_mask)) == NULL) |