summaryrefslogtreecommitdiff
path: root/tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel.c')
-rw-r--r--tunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnel.c b/tunnel.c
index 1383384..6d192ac 100644
--- a/tunnel.c
+++ b/tunnel.c
@@ -28,14 +28,14 @@ tunnel_set_state(struct device *dev, bool up)
int ret;
if (up) {
- ret = system_add_ip_tunnel(dev->ifname, dev->config);
+ ret = system_add_ip_tunnel(dev, dev->config);
if (ret != 0)
return ret;
}
ret = tun->set_state(dev, up);
if (ret || !up)
- system_del_ip_tunnel(dev->ifname, dev->config);
+ system_del_ip_tunnel(dev);
return ret;
}