diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-12 21:54:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-12 22:04:49 +0100 |
commit | f6d6bad1461a8f545a80955fadd7ee0c10db15bb (patch) | |
tree | 564da70bc2b76fcfeadf67cf515439a76ad482df /src/nspawn/nspawn-network.h | |
parent | 76e0779b5c7e85c7b69b2fffe5acaa7e9f12adbc (diff) |
nspawn: add new --network-veth-extra= switch for defining additional veth links
The new switch operates like --network-veth, but may be specified
multiple times (to define multiple link pairs) and allows flexible
definition of the interface names.
This is an independent reimplementation of #1678, but defines different
semantics, keeping the behaviour completely independent of
--network-veth. It also comes will full hook-up for .nspawn files, and
the matching documentation.
Diffstat (limited to 'src/nspawn/nspawn-network.h')
-rw-r--r-- | src/nspawn/nspawn-network.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nspawn/nspawn-network.h b/src/nspawn/nspawn-network.h index 311e6d06cb..b86effef47 100644 --- a/src/nspawn/nspawn-network.h +++ b/src/nspawn/nspawn-network.h @@ -27,6 +27,7 @@ #include <stdbool.h> int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge); +int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs); int setup_bridge(const char *veth_name, const char *bridge_name); @@ -34,3 +35,5 @@ int setup_macvlan(const char *machine_name, pid_t pid, char **ifaces); 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); |