From 8f82742ca4f47f459284f3a07323d04da72ea5f6 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sat, 9 Oct 2021 21:14:59 +0200 Subject: 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 --- system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system.h') 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); -- cgit v1.2.1