diff options
author | Dave Barach <dave@barachs.net> | 2020-10-09 11:33:55 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-10-09 17:20:28 +0000 |
commit | 6754a16ca3e01556f6d0383737aa22d89d32733b (patch) | |
tree | f66403ef75b59887dcf2cc84f7adaa4f1691c7e0 /src/plugins/wireguard/wireguard.h | |
parent | 695eb9353dc4895a17d960488675b7e44c8022db (diff) |
wireguard: park the timer process
Until the feature is configured. It would make sense to push more of
the feature init code into the newly-added wg_feature_init()
function. This patch fixes a severe hemorrhoid.
Type: improvement
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I87095575363baa41407dd52492159a7b8c2899e7
Diffstat (limited to 'src/plugins/wireguard/wireguard.h')
-rwxr-xr-x | src/plugins/wireguard/wireguard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/wireguard/wireguard.h b/src/plugins/wireguard/wireguard.h index 2c892a374b8..ef308c4c397 100755 --- a/src/plugins/wireguard/wireguard.h +++ b/src/plugins/wireguard/wireguard.h @@ -41,12 +41,16 @@ typedef struct u32 out_fq_index; wg_per_thread_data_t *per_thread_data; + u8 feature_init; tw_timer_wheel_16t_2w_512sl_t timer_wheel; } wg_main_t; extern wg_main_t wg_main; +#define WG_START_EVENT 1 +void wg_feature_init (wg_main_t * wmp); + #endif /* __included_wg_h__ */ /* |