diff options
| author | Qiuwen Lu <[email protected]> | 2017-10-01 13:39:36 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-10-01 13:39:36 +0800 |
| commit | 92d822ddc5e63bd2e00e4068ca885325414bcd52 (patch) | |
| tree | 8de052780780dd77a7fcc42d67e81b19fc85d418 | |
| parent | c9ec0afedeb770148a257c49f87ea1cc09d35e57 (diff) | |
修改Tunnat技术逻辑,当encap_len为0时,计直接转发。v4.2.24-20171001
| -rw-r--r-- | tunnat/src/runtime.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnat/src/runtime.cc b/tunnat/src/runtime.cc index 28672d1..dc4d1e8 100644 --- a/tunnat/src/runtime.cc +++ b/tunnat/src/runtime.cc @@ -209,7 +209,7 @@ static int __virt_to_phy_pkt_forward(TunnatInstance * instance, TunnatThreadInst if (!(ctrlzone->action & TUNNAT_CZ_ACTION_FORWARD)) return RT_ERR; /* 对于没有封装的报文,如专用设备的保活报文,其隧道长度为0,不做任何处理 */ - if (ctrlzone->__encap_len == 0) return RT_SUCCESS; + if (ctrlzone->__encap_len == 0) return RT_ERR; #if MR_TUNNAT_USE_PHONY_ETHER_HEADER |
