TSG-17749 tsg-service-chaining-engine更改VXLAN Frame源端口的计算方式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user