networkd: Add support for ERSPAN tunnel

System Internals / systemd - Susant Sahani [gmail.com] - 27 November 2018 02:04 EST

Please see: https://patchwork.ozlabs.org/patch/800327/

[NetDev] Name=erspan-test Kind=erspan

[Tunnel] Independent=true ERSPANIndex=123 Local = 172.16.1.200 Remote = 172.16.1.100 Key=101 SerializeTunneledPackets=true

2266864b0 networkd: Add support for ERSPAN tunnel
man/systemd.netdev.xml | 21 +++++
meson.build | 1 +
src/basic/missing.h | 12 ++-
src/libsystemd/sd-netlink/netlink-types.c | 4 +
src/libsystemd/sd-netlink/netlink-types.h | 1 +
src/network/netdev/netdev-gperf.gperf | 2 +
src/network/netdev/netdev.c | 2 +
src/network/netdev/netdev.h | 1 +
src/network/netdev/tunnel.c | 104 ++++++++++++++++++++++++-
src/network/netdev/tunnel.h | 4 +
test/test-network/conf/25-erspan-tunnel.netdev | 11 +++
test/test-network/systemd-networkd-tests.py | 25 ++++--
12 files changed, 177 insertions(+), 11 deletions(-)

Upstream: github.com


  • Share