summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn-network.h
diff options
context:
space:
mode:
authorRaul Cheleguini <raul.cheleguini@gmail.com>2023-10-04 04:06:38 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-10-25 14:59:46 +0200
commit813dbff4d59a4f256f8824c45af9e8af8f7b4c05 (patch)
treec3a08eb872efe020e7581981c4414cfa50cf8fd2 /src/nspawn/nspawn-network.h
parentMerge pull request #29704 from mrc0mmand/cocci (diff)
downloadsystemd-813dbff4d59a4f256f8824c45af9e8af8f7b4c05.tar.xz
systemd-813dbff4d59a4f256f8824c45af9e8af8f7b4c05.zip
nspawn: allow user-specified MAC address on container side
Introduce the environment variable SYSTEMD_NSPAWN_NETWORK_MAC to allow user-specified MAC address on container side.
Diffstat (limited to 'src/nspawn/nspawn-network.h')
-rw-r--r--src/nspawn/nspawn-network.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-network.h b/src/nspawn/nspawn-network.h
index 355d813c96..8e37d15ad2 100644
--- a/src/nspawn/nspawn-network.h
+++ b/src/nspawn/nspawn-network.h
@@ -5,9 +5,11 @@
#include <stdbool.h>
#include <sys/types.h>
+#include "ether-addr-util.h"
+
int test_network_interfaces_initialized(char **iface_pairs);
-int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
+int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, struct ether_addr *provided_mac);
int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs);
int setup_bridge(const char *veth_name, const char *bridge_name, bool create);