]>
Commit | Line | Data |
---|---|---|
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ | |
2 | #pragma once | |
3 | ||
4 | #include <net/if.h> | |
5 | #include <stdbool.h> | |
6 | #include <sys/types.h> | |
7 | ||
8 | int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge); | |
9 | int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs); | |
10 | ||
11 | int setup_bridge(const char *veth_name, const char *bridge_name, bool create); | |
12 | int remove_bridge(const char *bridge_name); | |
13 | ||
14 | int setup_macvlan(const char *machine_name, pid_t pid, char **ifaces); | |
15 | int setup_ipvlan(const char *machine_name, pid_t pid, char **ifaces); | |
16 | ||
17 | int move_network_interfaces(pid_t pid, char **ifaces); | |
18 | ||
19 | int veth_extra_parse(char ***l, const char *p); | |
20 | ||
21 | int remove_veth_links(const char *primary, char **pairs); |