summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2014-05-21 14:01:04 +0530
committerTom Gundersen <teg@jklm.no>2014-06-02 16:09:40 +0200
commit10142d75cce10a92889cc11b7b1af07fecc78c5d (patch)
tree45912e46dfcba7ad3aaa74508c5761bb43e64b43 /src/network/networkd.h
parentb686acb27ea4de042320fa196cfb14e08f30165b (diff)
networkd: introduce veth device support
This patch adds veth device support to networkd. Example conf: File: veth.netdev [NetDev] Name=veth-test Kind=veth [Peer] Name=veth-peer
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index cfe24f5702..e504854761 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -71,6 +71,7 @@ typedef enum NetDevKind {
NETDEV_KIND_IPIP,
NETDEV_KIND_GRE,
NETDEV_KIND_SIT,
+ NETDEV_KIND_VETH,
_NETDEV_KIND_MAX,
_NETDEV_KIND_INVALID = -1
} NetDevKind;
@@ -98,6 +99,7 @@ struct NetDev {
char *description;
char *ifname;
+ char *ifname_peer;
size_t mtu;
NetDevKind kind;
@@ -310,6 +312,7 @@ int netdev_get(Manager *manager, const char *name, NetDev **ret);
int netdev_set_ifindex(NetDev *netdev, sd_rtnl_message *newlink);
int netdev_enslave(NetDev *netdev, Link *link, sd_rtnl_message_handler_t cb);
int netdev_create_tunnel(Link *link, sd_rtnl_message_handler_t callback);
+int netdev_create_veth(NetDev *netdev, sd_rtnl_message_handler_t callback);
const char *netdev_kind_to_string(NetDevKind d) _const_;
NetDevKind netdev_kind_from_string(const char *d) _pure_;