diff options
author | Raul Cheleguini <raul.cheleguini@gmail.com> | 2023-10-04 04:06:38 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-10-25 14:59:46 +0200 |
commit | 813dbff4d59a4f256f8824c45af9e8af8f7b4c05 (patch) | |
tree | c3a08eb872efe020e7581981c4414cfa50cf8fd2 /src/nspawn/nspawn-network.h | |
parent | Merge pull request #29704 from mrc0mmand/cocci (diff) | |
download | systemd-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.h | 4 |
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); |