mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 04:03:36 +08:00
nspawn: Make parameter provided_mac a const for setup_veth()
This commit is contained in:
parent
b44a72da57
commit
5e21da878c
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user