]> git.ipfire.org Git - network.git/blobdiff - src/networkd/port.c
ports: Add support for VETH
[network.git] / src / networkd / port.c
index 7d654e3c9bd59afc5593b9136262172b7afc9551..fb62520703f9a33e1ed36799e466320576907dc5 100644 (file)
@@ -33,6 +33,7 @@
 #include "port.h"
 #include "port-bonding.h"
 #include "port-dummy.h"
+#include "port-veth.h"
 #include "port-vlan.h"
 #include "stats-collector.h"
 #include "string.h"
@@ -40,6 +41,7 @@
 static const nw_string_table_t nw_port_type_id[] = {
        { NW_PORT_BONDING, "bonding" },
        { NW_PORT_DUMMY,   "dummy" },
+       { NW_PORT_VETH,    "veth", },
        { NW_PORT_VLAN,    "vlan" },
        { -1, NULL },
 };
@@ -165,6 +167,9 @@ int nw_port_create(nw_port** port, nw_daemon* daemon,
                        p->type = &nw_port_type_dummy;
                        break;
 
+               case NW_PORT_VETH:
+                       p->type = &nw_port_type_veth;
+
                case NW_PORT_VLAN:
                        p->type = &nw_port_type_vlan;
                        break;
@@ -324,6 +329,7 @@ int __nw_port_drop_port(nw_daemon* daemon, nw_port* port, void* data) {
 
                case NW_PORT_BONDING:
                case NW_PORT_DUMMY:
+               case NW_PORT_VETH:
                        break;
        }