summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn-network.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-25 13:42:20 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-25 13:44:24 +0200
commitef3b2aa7a16cae897390feda791675c9fb2e8116 (patch)
treed971c138bb0cbf5a421a6e4ebe7c41330685a361 /src/nspawn/nspawn-network.h
parentfa647aa978a1fb6408798e365617529c2b7e53c7 (diff)
nspawn: explicitly remove veth links we created after use
Sometimes the kernel keeps veth links pinned after the namespace they have been joined to died. Let's hence explicitly remove veth links after use. Fixes: #2173
Diffstat (limited to 'src/nspawn/nspawn-network.h')
-rw-r--r--src/nspawn/nspawn-network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nspawn/nspawn-network.h b/src/nspawn/nspawn-network.h
index 9ab1606d1c..c5036ab470 100644
--- a/src/nspawn/nspawn-network.h
+++ b/src/nspawn/nspawn-network.h
@@ -34,3 +34,5 @@ int setup_ipvlan(const char *machine_name, pid_t pid, char **ifaces);
int move_network_interfaces(pid_t pid, char **ifaces);
int veth_extra_parse(char ***l, const char *p);
+
+int remove_veth_links(const char *primary, char **pairs);