refactor: rename packet_parse.cpp/h to packet_parser.cpp/h
This commit is contained in:
@@ -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__)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
add_library(packet
|
||||
packet_parse.cpp
|
||||
packet_parser.cpp
|
||||
packet_craft.cpp
|
||||
packet_filter.cpp
|
||||
packet_dump.cpp
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "tuple.h"
|
||||
#include "packet_def.h"
|
||||
#include "packet_parse.h"
|
||||
#include "packet_parser.h"
|
||||
#include "packet_filter.h"
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "packet_def.h"
|
||||
#include "packet_ldbc.h"
|
||||
#include "packet_parse.h"
|
||||
#include "packet_parser.h"
|
||||
#include "packet_dump.h"
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user