summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-08-28 18:00:06 +0800
committerluwenpeng <[email protected]>2024-08-28 18:00:06 +0800
commit500d697b5c8d1afc35f1499054ac307ecc4f8079 (patch)
tree4ec9987f9c93f492b06c4fee4aa33d554564cc92
parentf8f42a075e90a7821daf284506e87a5adfc8234d (diff)
refactor(infra/packet_parser): from *.cpp to *.c
-rw-r--r--infra/packet_parser/CMakeLists.txt12
-rw-r--r--infra/packet_parser/checksum.c (renamed from infra/packet_parser/checksum.cpp)0
-rw-r--r--infra/packet_parser/packet_builder.c (renamed from infra/packet_parser/packet_builder.cpp)0
-rw-r--r--infra/packet_parser/packet_dump.c (renamed from infra/packet_parser/packet_dump.cpp)0
-rw-r--r--infra/packet_parser/packet_filter.c (renamed from infra/packet_parser/packet_filter.cpp)0
-rw-r--r--infra/packet_parser/packet_parser.c (renamed from infra/packet_parser/packet_parser.cpp)0
-rw-r--r--infra/packet_parser/packet_utils.c (renamed from infra/packet_parser/packet_utils.cpp)0
7 files changed, 6 insertions, 6 deletions
diff --git a/infra/packet_parser/CMakeLists.txt b/infra/packet_parser/CMakeLists.txt
index 13e9547..5ed91e5 100644
--- a/infra/packet_parser/CMakeLists.txt
+++ b/infra/packet_parser/CMakeLists.txt
@@ -1,10 +1,10 @@
add_library(packet
- packet_utils.cpp
- packet_parser.cpp
- packet_builder.cpp
- packet_filter.cpp
- packet_dump.cpp
- checksum.cpp)
+ packet_utils.c
+ packet_parser.c
+ packet_builder.c
+ packet_filter.c
+ packet_dump.c
+ checksum.c)
target_include_directories(packet PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash)
target_include_directories(packet PUBLIC ${CMAKE_SOURCE_DIR}/include)
diff --git a/infra/packet_parser/checksum.cpp b/infra/packet_parser/checksum.c
index a984598..a984598 100644
--- a/infra/packet_parser/checksum.cpp
+++ b/infra/packet_parser/checksum.c
diff --git a/infra/packet_parser/packet_builder.cpp b/infra/packet_parser/packet_builder.c
index 64e77d8..64e77d8 100644
--- a/infra/packet_parser/packet_builder.cpp
+++ b/infra/packet_parser/packet_builder.c
diff --git a/infra/packet_parser/packet_dump.cpp b/infra/packet_parser/packet_dump.c
index 8f12d2d..8f12d2d 100644
--- a/infra/packet_parser/packet_dump.cpp
+++ b/infra/packet_parser/packet_dump.c
diff --git a/infra/packet_parser/packet_filter.cpp b/infra/packet_parser/packet_filter.c
index 6167dbc..6167dbc 100644
--- a/infra/packet_parser/packet_filter.cpp
+++ b/infra/packet_parser/packet_filter.c
diff --git a/infra/packet_parser/packet_parser.cpp b/infra/packet_parser/packet_parser.c
index f19c1f7..f19c1f7 100644
--- a/infra/packet_parser/packet_parser.cpp
+++ b/infra/packet_parser/packet_parser.c
diff --git a/infra/packet_parser/packet_utils.cpp b/infra/packet_parser/packet_utils.c
index 79485ec..79485ec 100644
--- a/infra/packet_parser/packet_utils.cpp
+++ b/infra/packet_parser/packet_utils.c