diff options
author | Linus Nordberg <linus@nordberg.se> | 2019-10-16 11:19:14 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-11 06:22:17 +0100 |
commit | 0d2c373514de8afd5174b32215513c631d10c357 (patch) | |
tree | 8f4ab6aeb692347d3586d6d85528f203001b36e1 /lease.h | |
parent | server: restore leases from allowedips at startup (diff) | |
download | wg-dynamic-0d2c373514de8afd5174b32215513c631d10c357.tar.xz wg-dynamic-0d2c373514de8afd5174b32215513c631d10c357.zip |
Ignore routes not for the wg interface
Adding 127.0.0.0/8 (lo) for example is not what we want.
Didn't happen in tests/netsh.sh because the use of network namespaces.
Diffstat (limited to 'lease.h')
-rw-r--r-- | lease.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ struct wg_dynamic_lease { * Initializes internal state, retrieves routes from nlsock and reads leases * from fname. */ -void leases_init(char *fname, struct mnl_socket *nlsock); +void leases_init(char *fname, struct mnl_socket *nlsock, uint32_t ifindex); /* * Frees everything, closes file. @@ -60,6 +60,6 @@ int leases_refresh(const char *devname); /* * Updates all pools with information from the mnl socket nlsock. */ -void leases_update_pools(struct mnl_socket *nlsock); +void leases_update_pools(struct mnl_socket *nlsock, uint32_t ifindex); #endif |