9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering#pragma once
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering/***
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering This file is part of systemd.
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering Copyright 2015 Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering systemd is free software; you can redistribute it and/or modify it
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering under the terms of the GNU Lesser General Public License as published by
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering (at your option) any later version.
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering systemd is distributed in the hope that it will be useful, but
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering Lesser General Public License for more details.
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering You should have received a copy of the GNU Lesser General Public License
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering***/
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering#include <net/if.h>
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering#include <stdbool.h>
71d35b6b5563817dfbe757ab9e3b9f018b2db491Thomas Hindoe Paaboel Andersen#include <sys/types.h>
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poetteringint setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
f6d6bad1461a8f545a80955fadd7ee0c10db15bbLennart Poetteringint setup_veth_extra(const char *machine_name, pid_t pid, char **pairs);
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poetteringint setup_bridge(const char *veth_name, const char *bridge_name);
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poetteringint setup_macvlan(const char *machine_name, pid_t pid, char **ifaces);
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poetteringint setup_ipvlan(const char *machine_name, pid_t pid, char **ifaces);
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poettering
9a2a5625bfd395033a0767d1685f725ca8293dd9Lennart Poetteringint move_network_interfaces(pid_t pid, char **ifaces);
f6d6bad1461a8f545a80955fadd7ee0c10db15bbLennart Poettering
f6d6bad1461a8f545a80955fadd7ee0c10db15bbLennart Poetteringint veth_extra_parse(char ***l, const char *p);