summaryrefslogtreecommitdiff
path: root/src/network/netdev/netdev-gperf.gperf
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-05-31 23:08:28 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-06-01 04:02:48 +0900
commit98406eda8ac64491833b89d04b29d4b8c9748875 (patch)
tree0826f9691e4cd3dbb260131c98a4587858fb825f /src/network/netdev/netdev-gperf.gperf
parent1c1cb8ec6f16c9c38806b2aba86e4d80e569b0d7 (diff)
downloadsystemd-98406eda8ac64491833b89d04b29d4b8c9748875.tar.gz
network/erspan: support erspan version 0 and 2
This also makes networkd accepts erspan index 0. Closes #23570.
Diffstat (limited to 'src/network/netdev/netdev-gperf.gperf')
-rw-r--r--src/network/netdev/netdev-gperf.gperf5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network/netdev/netdev-gperf.gperf b/src/network/netdev/netdev-gperf.gperf
index 77140be400..55ad60ddc8 100644
--- a/src/network/netdev/netdev-gperf.gperf
+++ b/src/network/netdev/netdev-gperf.gperf
@@ -89,7 +89,10 @@ Tunnel.FOUDestinationPort, config_parse_ip_port,
Tunnel.FOUSourcePort, config_parse_ip_port, 0, offsetof(Tunnel, encap_src_port)
Tunnel.Encapsulation, config_parse_fou_encap_type, 0, offsetof(Tunnel, fou_encap_type)
Tunnel.IPv6RapidDeploymentPrefix, config_parse_6rd_prefix, 0, 0
-Tunnel.ERSPANIndex, config_parse_uint32, 0, offsetof(Tunnel, erspan_index)
+Tunnel.ERSPANVersion, config_parse_erspan_version, 0, offsetof(Tunnel, erspan_version)
+Tunnel.ERSPANIndex, config_parse_erspan_index, 0, offsetof(Tunnel, erspan_index)
+Tunnel.ERSPANDirection, config_parse_erspan_direction, 0, offsetof(Tunnel, erspan_direction)
+Tunnel.ERSPANHardwareId, config_parse_erspan_hwid, 0, offsetof(Tunnel, erspan_hwid)
Tunnel.SerializeTunneledPackets, config_parse_tristate, 0, offsetof(Tunnel, gre_erspan_sequence)
Tunnel.ISATAP, config_parse_tristate, 0, offsetof(Tunnel, isatap)
Tunnel.External, config_parse_bool, 0, offsetof(Tunnel, external)