refactor: rename packet_parse.cpp/h to packet_parser.cpp/h

This commit is contained in:
luwenpeng
2024-08-16 11:49:54 +08:00
parent d2de4bd328
commit ebf1dad62c
33 changed files with 34 additions and 34 deletions

View File

@@ -10,7 +10,7 @@
#include "crc32_hash.h"
#include "packet_def.h"
#include "packet_utils.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "ip_reassembly.h"
#define IP_REASSEMBLE_DEBUG(format, ...) LOG_DEBUG("ip_reassembly", format, ##__VA_ARGS__)

View File

@@ -15,7 +15,7 @@ extern "C"
#include "packet_def.h"
#include "packet_dump.h"
#include "packet_utils.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
static inline void packet_set_ipv4_src_addr(struct packet *pkt, uint32_t saddr)

View File

@@ -1,5 +1,5 @@
add_library(packet
packet_parse.cpp
packet_parser.cpp
packet_craft.cpp
packet_filter.cpp
packet_dump.cpp

View File

@@ -11,7 +11,7 @@
#include "packet_def.h"
#include "packet_utils.h"
#include "packet_layer.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_craft.h"
#define PACKET_CRAFT_LOG_DEBUG(format, ...) LOG_DEBUG("packet craft", format, ##__VA_ARGS__)

View File

@@ -19,7 +19,7 @@
#include "vxlan_utils.h"
#include "packet_def.h"
#include "packet_dump.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_utils.h"
#define PACKET_DUMP_LOG_ERROR(format, ...) LOG_ERROR("packet dump", format, ##__VA_ARGS__)

View File

@@ -17,7 +17,7 @@
#include "vlan_utils.h"
#include "vxlan_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#define likely(expr) __builtin_expect((expr), 1)
#define unlikely(expr) __builtin_expect((expr), 0)

View File

@@ -43,8 +43,8 @@ target_link_libraries(gtest_gtp2_utils packet gtest)
add_executable(gtest_packet_frag gtest_packet_frag.cpp)
target_link_libraries(gtest_packet_frag packet gtest)
add_executable(gtest_packet_parse gtest_packet_parse.cpp)
target_link_libraries(gtest_packet_parse packet gtest)
add_executable(gtest_packet_parser gtest_packet_parser.cpp)
target_link_libraries(gtest_packet_parser packet gtest)
add_executable(gtest_packet_craft gtest_packet_craft.cpp)
target_link_libraries(gtest_packet_craft packet gtest)
@@ -68,6 +68,6 @@ gtest_discover_tests(gtest_l2tp_utils)
gtest_discover_tests(gtest_gtp1_utils)
gtest_discover_tests(gtest_gtp2_utils)
gtest_discover_tests(gtest_packet_frag)
gtest_discover_tests(gtest_packet_parse)
gtest_discover_tests(gtest_packet_parser)
gtest_discover_tests(gtest_packet_craft)
gtest_discover_tests(gtest_packet_ldbc)

View File

@@ -11,7 +11,7 @@
#include "packet_def.h"
#include "packet_dump.h"
#include "packet_layer.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_craft.h"
#include "packet_utils.h"

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_filter.h"
/******************************************************************************

View File

@@ -2,7 +2,7 @@
#include "packet_def.h"
#include "packet_utils.h"
#include "packet_parse.h"
#include "packet_parser.h"
/******************************************************************************
* [Protocols in frame: eth:ethertype:ip:data]

View File

@@ -3,7 +3,7 @@
#include "packet_def.h"
#include "packet_ldbc.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_dump.h"
/******************************************************************************

View File

@@ -3,7 +3,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_utils.h"
#include "packet_layer.h"
#include "packet_dump.h"

View File

@@ -6,7 +6,7 @@
#include "ip6_utils.h"
#include "vxlan_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_dump.h"
#include "stellar/layer.h"
#include "stellar/tunnel.h"

View File

@@ -16,7 +16,7 @@
#include "packet_def.h"
#include "packet_ldbc.h"
#include "packet_utils.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_dump.h"
#include "lock_free_queue.h"

View File

@@ -9,7 +9,7 @@
#include "marsio_io.h"
#include "packet_def.h"
#include "packet_utils.h"
#include "packet_parse.h"
#include "packet_parser.h"
#define PACKET_IO_LOG_ERROR(format, ...) LOG_ERROR("marsio", format, ##__VA_ARGS__)

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "snowflake.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -2,7 +2,7 @@
#include "ip4_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -3,7 +3,7 @@
#include "utils.h"
#include "ip4_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -3,7 +3,7 @@
#include "utils.h"
#include "ip4_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -2,7 +2,7 @@
#include "ip4_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -4,7 +4,7 @@
#include "tuple.h"
#include "tcp_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -4,7 +4,7 @@
#include "tuple.h"
#include "ip4_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -3,7 +3,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -3,7 +3,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -4,7 +4,7 @@
#include "tuple.h"
#include "tcp_utils.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -3,7 +3,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -3,7 +3,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "snowflake.h"
#include "session_utils.h"

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -2,7 +2,7 @@
#include "tuple.h"
#include "packet_def.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_layer.h"
#include "session_utils.h"
#include "session_manager.h"

View File

@@ -9,7 +9,7 @@
#include "udp_utils.h"
#include "packet_def.h"
#include "packet_layer.h"
#include "packet_parse.h"
#include "packet_parser.h"
#include "packet_dump.h"
#include "packet_utils.h"