nspawn: Make parameter provided_mac a const for setup_veth()

This commit is contained in:
Raul Cheleguini 2023-10-26 14:22:31 -03:00 committed by Luca Boccassi
parent b44a72da57
commit 5e21da878c
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ int setup_veth(const char *machine_name,
pid_t pid, pid_t pid,
char iface_name[IFNAMSIZ], char iface_name[IFNAMSIZ],
bool bridge, bool bridge,
struct ether_addr *provided_mac) { const struct ether_addr *provided_mac) {
_cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
struct ether_addr mac_host, mac_container; struct ether_addr mac_host, mac_container;

View File

@ -9,7 +9,7 @@
int test_network_interfaces_initialized(char **iface_pairs); int test_network_interfaces_initialized(char **iface_pairs);
int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, struct ether_addr *provided_mac); int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, const struct ether_addr *provided_mac);
int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs); 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); int setup_bridge(const char *veth_name, const char *bridge_name, bool create);