summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-11-20 10:31:21 +0800
committerluwenpeng <[email protected]>2023-11-20 10:31:21 +0800
commit134d2c82b7ebc2229fac03be721555e37f4db571 (patch)
treeec696bc40260d2b180b792aa44ae5550c2771487 /test
parent83f9880ff0dcad18bb96a6a3587e5cd3782e4b93 (diff)
TSG-17749 tsg-service-chaining-engine更改VXLAN Frame源端口的计算方式
Diffstat (limited to 'test')
-rw-r--r--test/gtest_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gtest_utils.h b/test/gtest_utils.h
index e1eef9d..1ccbac5 100644
--- a/test/gtest_utils.h
+++ b/test/gtest_utils.h
@@ -12,7 +12,7 @@ extern "C"
#include "sce.h"
#include "log.h"
#include "marsio.h"
-#include "g_vxlan.h"
+#include "vxlan.h"
#include "packet_io.h"
#include "sf_metrics.h"
#include "health_check.h"
@@ -206,7 +206,7 @@ inline void gtest_frame_log(struct gtest_frame *instance)
inline int mbuff_cmp_payload(marsio_buff_t *buff, marsio_buff_t *vxlan_pkt)
{
- struct g_vxlan *g_vxlan_hdr = NULL;
+ struct vxlan_hdr *vxlan_hdr = NULL;
int buff_len = marsio_buff_datalen(buff);
char *buff_data = marsio_buff_mtod(buff);
@@ -218,7 +218,7 @@ inline int mbuff_cmp_payload(marsio_buff_t *buff, marsio_buff_t *vxlan_pkt)
goto error_out;
}
- if (g_vxlan_decode(&g_vxlan_hdr, vxlan_pkt_data, vxlan_pkt_len) != 0)
+ if (vxlan_frame_decode(&vxlan_hdr, vxlan_pkt_data, vxlan_pkt_len) != 0)
{
goto error_out;
}