summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2021-10-09 21:14:59 +0200
committerHans Dedecker <dedeckeh@gmail.com>2021-10-30 20:41:22 +0200
commit8f82742ca4f47f459284f3a07323d04da72ea5f6 (patch)
treeb57789a93c5f15e5d76675b1dcdae4ebd703a0dd /system.h
parentf78bdec2ed5f4c83d2c93f422c8bd21b68b02517 (diff)
downloadnetifd-8f82742ca4f47f459284f3a07323d04da72ea5f6.tar.gz
system-linux: fix deletion of ip tunnels (FS#4058)
The deletion of IP tunnels via the ioctl interface is broken; instead of fixing the ioctl interface switch to the netlink based interface to delete IP tunnel devices as this simplifies and unifies the code Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'system.h')
-rw-r--r--system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/system.h b/system.h
index be90f65..1f7037d 100644
--- a/system.h
+++ b/system.h
@@ -295,8 +295,8 @@ bool system_resolve_rt_table(const char *name, unsigned int *id);
bool system_is_default_rt_table(unsigned int id);
bool system_resolve_rpfilter(const char *filter, unsigned int *id);
-int system_del_ip_tunnel(const char *name, struct blob_attr *attr);
-int system_add_ip_tunnel(const char *name, struct blob_attr *attr);
+int system_del_ip_tunnel(const struct device *dev);
+int system_add_ip_tunnel(const struct device *dev, struct blob_attr *attr);
int system_add_iprule(struct iprule *rule);
int system_del_iprule(struct iprule *rule);