TSG-17749 tsg-service-chaining-engine更改VXLAN Frame源端口的计算方式

This commit is contained in:
luwenpeng
2023-11-20 10:31:21 +08:00
parent 83f9880ff0
commit 134d2c82b7
14 changed files with 327 additions and 271 deletions

View File

@@ -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;
}