refactor: mv eth/gre0/gre1/gtp1/gtp2/ip4/ip6/l2tp/mpls/tcp/udp/vlan/vxlan utils.h to packet_helper.h

This commit is contained in:
luwenpeng
2024-08-16 16:12:12 +08:00
parent b36cd8cdad
commit c298fdf289
46 changed files with 2900 additions and 3258 deletions

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "eth_utils.h"
#include "packet_helper.h"
/*
* Ethernet II, Src: 00:00:00_00:04:36 (00:00:00:00:04:36), Dst: 18:10:04:00:03:1f (18:10:04:00:03:1f)

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "gre0_utils.h"
#include "packet_helper.h"
/*
* Generic Routing Encapsulation (IP)

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "gre1_utils.h"
#include "packet_helper.h"
/*
* Generic Routing Encapsulation (PPP)

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "gtp1_utils.h"
#include "packet_helper.h"
/*
* User Datagram Protocol, Src Port: 2123, Dst Port: 2123

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "gtp2_utils.h"
#include "packet_helper.h"
/*
* User Datagram Protocol, Src Port: 2123, Dst Port: 12491

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "ip4_utils.h"
#include "packet_helper.h"
/******************************************************************************
* more fragment

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "ip6_utils.h"
#include "packet_helper.h"
/*
* Internet Protocol Version 6, Src: fe80::250:56ff:fe69:dc00, Dst: ff02::1:2

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "l2tp_utils.h"
#include "packet_helper.h"
/*
* Layer 2 Tunneling Protocol

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "mpls_utils.h"
#include "packet_helper.h"
/*
* MultiProtocol Label Switching Header, Label: 779408, Exp: 0, S: 0, TTL: 255

View File

@@ -2,12 +2,7 @@
#include <arpa/inet.h>
#include "checksum.h"
#include "tcp_utils.h"
#include "udp_utils.h"
#include "ip4_utils.h"
#include "ip6_utils.h"
#include "gtp_utils.h"
#include "gre_utils.h"
#include "packet_helper.h"
#include "packet_private.h"
#include "packet_dump.h"
#include "packet_layer.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "tcp_utils.h"
#include "packet_helper.h"
/*
* Transmission Control Protocol, Src Port: 55555, Dst Port: 40856, Seq: 0, Ack: 1, Len: 0

View File

@@ -1,10 +1,6 @@
#include <gtest/gtest.h>
#include "udp_utils.h"
#include "gre_utils.h"
#include "ip4_utils.h"
#include "ip6_utils.h"
#include "vxlan_utils.h"
#include "packet_helper.h"
#include "packet_private.h"
#include "packet_parser.h"
#include "packet_dump.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "udp_utils.h"
#include "packet_helper.h"
/*
* User Datagram Protocol, Src Port: 4001, Dst Port: 8000

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "vlan_utils.h"
#include "packet_helper.h"
/*
* IEEE 802.1ad, ID: 1

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "vxlan_utils.h"
#include "packet_helper.h"
/*
* Virtual eXtensible Local Area Network