summaryrefslogtreecommitdiff
path: root/tunnat
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2018-12-15 14:47:17 +0600
committerluqiuwen <[email protected]>2018-12-15 14:48:49 +0600
commit4ba447f6fd1612347ea72ed0f81ac03d09f95d38 (patch)
tree683e5df08d73321f1472f6de4626b27f5f2c05fc /tunnat
parent48d78609a0df91ed344e61a86d02758a97a08fcc (diff)
修正报文带有MPLS标签时分流错误的问题,增补非对称MPLS标签的分流单元测试用例v4.3.2-20181222
* 原实现在解析带有MPLS标签报文时,使用了硬件提供的报文类型标志。此时,报文类型标志为IPv4,未区分是否具有MPLS标签。因此,原实现认为该报文为不带标签的IPv4包,直接计算报文哈希值,导致分流错误。 * 现修正,默认不读取硬件提供报文类型标志,软件再次解析报文确定报文类型。 * 增补非对称MPLS标签的分流单元测试用例。
Diffstat (limited to 'tunnat')
-rw-r--r--tunnat/src/tunnel.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tunnat/src/tunnel.cc b/tunnat/src/tunnel.cc
index 7bfda2d..1af8138 100644
--- a/tunnat/src/tunnel.cc
+++ b/tunnat/src/tunnel.cc
@@ -358,7 +358,6 @@ int TunnelContainer::PacketParse(const char * pkt, unsigned int pkt_len,
else this_layer_type = TUNNEL_TYPE_UNKNOWN;
goto out;
-
guess:
ret = tun_vxlan_object_.PacketParse(pkt, pkt_len);
if (ret >= 0)