diff options
author | Susant Sahani <145210+ssahani@users.noreply.github.com> | 2017-11-22 12:53:22 +0530 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-22 08:23:22 +0100 |
commit | d6df583c87cee0bfae2d756ea93ac7533e6a53fe (patch) | |
tree | 97d0db3b4d9cc0315cfe0699a1e8b0ccfc62333e /src/network/netdev/netdev.c | |
parent | a217a4bcc5dd773f5452988ca35e3d830cf90781 (diff) | |
download | systemd-d6df583c87cee0bfae2d756ea93ac7533e6a53fe.tar.gz |
networkd: introduce vxcan netdev. (#7150)
Similar to the virtual ethernet driver veth, vxcan implements a
local CAN traffic tunnel between two virtual CAN network devices.
When creating a vxcan, two vxcan devices are created as pair
When one end receives the packet it appears on its pair and vice
versa. The vxcan can be used for cross namespace communication.
Diffstat (limited to 'src/network/netdev/netdev.c')
-rw-r--r-- | src/network/netdev/netdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index f148bb43c3..5530760e19 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -48,6 +48,7 @@ #include "netdev/dummy.h" #include "netdev/vrf.h" #include "netdev/vcan.h" +#include "netdev/vxcan.h" const NetDevVTable * const netdev_vtable[_NETDEV_KIND_MAX] = { [NETDEV_KIND_BRIDGE] = &bridge_vtable, @@ -73,6 +74,7 @@ const NetDevVTable * const netdev_vtable[_NETDEV_KIND_MAX] = { [NETDEV_KIND_VRF] = &vrf_vtable, [NETDEV_KIND_VCAN] = &vcan_vtable, [NETDEV_KIND_GENEVE] = &geneve_vtable, + [NETDEV_KIND_VXCAN] = &vxcan_vtable, }; static const char* const netdev_kind_table[_NETDEV_KIND_MAX] = { @@ -99,6 +101,7 @@ static const char* const netdev_kind_table[_NETDEV_KIND_MAX] = { [NETDEV_KIND_VRF] = "vrf", [NETDEV_KIND_VCAN] = "vcan", [NETDEV_KIND_GENEVE] = "geneve", + [NETDEV_KIND_VXCAN] = "vxcan", }; DEFINE_STRING_TABLE_LOOKUP(netdev_kind, NetDevKind); |