feature: add GTP utils, support overwrite message length of GTP header
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
#include "udp_utils.h"
|
||||
#include "gre_utils.h"
|
||||
#include "ipv4_utils.h"
|
||||
#include "ipv6_utils.h"
|
||||
#include "ip4_utils.h"
|
||||
#include "ip6_utils.h"
|
||||
#include "vxlan_utils.h"
|
||||
#include "packet_def.h"
|
||||
#include "packet_parse.h"
|
||||
@@ -626,7 +626,7 @@ TEST(TUNNEL, GTP)
|
||||
EXPECT_TRUE(out.layers[1].proto == LAYER_PROTO_UDP);
|
||||
EXPECT_TRUE(out.layers[1].hdr_len == 8);
|
||||
|
||||
EXPECT_TRUE(out.layers[2].proto == LAYER_PROTO_GTP);
|
||||
EXPECT_TRUE(out.layers[2].proto == LAYER_PROTO_GTP_U);
|
||||
EXPECT_TRUE(out.layers[2].hdr_len == 8);
|
||||
|
||||
// No tunnel
|
||||
|
||||
Reference in New Issue
Block a user