aboutsummaryrefslogtreecommitdiffstats
path: root/lease.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-10-16 11:19:14 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-12-11 06:22:17 +0100
commit0d2c373514de8afd5174b32215513c631d10c357 (patch)
tree8f4ab6aeb692347d3586d6d85528f203001b36e1 /lease.h
parentserver: restore leases from allowedips at startup (diff)
downloadwg-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lease.h b/lease.h
index 40c461f..9cbe547 100644
--- a/lease.h
+++ b/lease.h
@@ -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