1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
8 #include "ether-addr-util.h"
10 int test_network_interfaces_initialized(char **iface_pairs
);
12 int setup_veth(const char *machine_name
, pid_t pid
, char iface_name
[IFNAMSIZ
], bool bridge
, const struct ether_addr
*provided_mac
);
13 int setup_veth_extra(const char *machine_name
, pid_t pid
, char **pairs
);
15 int setup_bridge(const char *veth_name
, const char *bridge_name
, bool create
);
16 int remove_bridge(const char *bridge_name
);
18 int setup_macvlan(const char *machine_name
, pid_t pid
, char **iface_pairs
);
19 int setup_ipvlan(const char *machine_name
, pid_t pid
, char **iface_pairs
);
21 int move_network_interfaces(int netns_fd
, char **iface_pairs
);
23 int veth_extra_parse(char ***l
, const char *p
);
25 int remove_veth_links(const char *primary
, char **pairs
);
27 int interface_pair_parse(char ***l
, const char *p
);
28 int macvlan_pair_parse(char ***l
, const char *p
);
29 int ipvlan_pair_parse(char ***l
, const char *p
);