diff options
| author | luwenpeng <[email protected]> | 2024-09-13 16:08:07 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-09-13 18:07:40 +0800 |
| commit | 173a6ced619ebd93d7e52e455936b02c91d8e8b6 (patch) | |
| tree | 130674f20c0b86a041d72400526a1e5b51dd0bd7 | |
| parent | 06c498409f0fef942e59143d1484e9679bd212d2 (diff) | |
refactor: rename the directory infra/packet_parser to infra/paket_manager
| -rw-r--r-- | infra/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | infra/ip_reassembly/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | infra/packet_io/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | infra/packet_manager/CMakeLists.txt | 15 | ||||
| -rw-r--r-- | infra/packet_manager/checksum.c (renamed from infra/packet_parser/checksum.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/checksum.h (renamed from infra/packet_parser/checksum.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_builder.c (renamed from infra/packet_parser/packet_builder.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_dump.c (renamed from infra/packet_parser/packet_dump.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_dump.h (renamed from infra/packet_parser/packet_dump.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_filter.c (renamed from infra/packet_parser/packet_filter.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_filter.h (renamed from infra/packet_parser/packet_filter.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_helper.h (renamed from infra/packet_parser/packet_helper.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_parser.c (renamed from infra/packet_parser/packet_parser.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_parser.h (renamed from infra/packet_parser/packet_parser.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_private.h (renamed from infra/packet_parser/packet_private.h) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/packet_utils.c (renamed from infra/packet_parser/packet_utils.c) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/CMakeLists.txt (renamed from infra/packet_parser/test/CMakeLists.txt) | 38 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_eth_utils.cpp (renamed from infra/packet_parser/test/gtest_eth_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_gre0_utils.cpp (renamed from infra/packet_parser/test/gtest_gre0_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_gre1_utils.cpp (renamed from infra/packet_parser/test/gtest_gre1_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_gtp1_utils.cpp (renamed from infra/packet_parser/test/gtest_gtp1_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_gtp2_utils.cpp (renamed from infra/packet_parser/test/gtest_gtp2_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_ip4_utils.cpp (renamed from infra/packet_parser/test/gtest_ip4_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_ip6_utils.cpp (renamed from infra/packet_parser/test/gtest_ip6_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_l2tp_utils.cpp (renamed from infra/packet_parser/test/gtest_l2tp_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_mpls_utils.cpp (renamed from infra/packet_parser/test/gtest_mpls_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_packet_builder.cpp (renamed from infra/packet_parser/test/gtest_packet_builder.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_packet_filter.cpp (renamed from infra/packet_parser/test/gtest_packet_filter.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_packet_frag.cpp (renamed from infra/packet_parser/test/gtest_packet_frag.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_packet_ldbc.cpp (renamed from infra/packet_parser/test/gtest_packet_ldbc.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_packet_parser.cpp (renamed from infra/packet_parser/test/gtest_packet_parser.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_tcp_utils.cpp (renamed from infra/packet_parser/test/gtest_tcp_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_tunnel.cpp (renamed from infra/packet_parser/test/gtest_tunnel.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_udp_utils.cpp (renamed from infra/packet_parser/test/gtest_udp_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_vlan_utils.cpp (renamed from infra/packet_parser/test/gtest_vlan_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_manager/test/gtest_vxlan_utils.cpp (renamed from infra/packet_parser/test/gtest_vxlan_utils.cpp) | 0 | ||||
| -rw-r--r-- | infra/packet_parser/CMakeLists.txt | 15 | ||||
| -rw-r--r-- | infra/plugin_manager/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | infra/session_manager/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | test/debug_plugin/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | test/decoders/session_flags/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | test/packet_tool/CMakeLists.txt | 2 |
42 files changed, 42 insertions, 42 deletions
diff --git a/infra/CMakeLists.txt b/infra/CMakeLists.txt index aec3d43..5d73a33 100644 --- a/infra/CMakeLists.txt +++ b/infra/CMakeLists.txt @@ -1,4 +1,4 @@ -set(INFRA exdata mq tuple packet_parser packet_io ip_reassembly tcp_reassembly session_manager plugin_manager) +set(INFRA exdata mq tuple packet_manager packet_io ip_reassembly tcp_reassembly session_manager plugin_manager) set(DEPS bitmap dablooms interval_tree logger nmx_pool rbtree timeout toml) #set(DECODERS http lpi) set(WHOLE_ARCHIVE ${DEPS} ${INFRA} ${DECODERS}) diff --git a/infra/ip_reassembly/CMakeLists.txt b/infra/ip_reassembly/CMakeLists.txt index 5403fd7..0bcc4be 100644 --- a/infra/ip_reassembly/CMakeLists.txt +++ b/infra/ip_reassembly/CMakeLists.txt @@ -1,6 +1,6 @@ add_library(ip_reassembly ip_reassembly.c) target_include_directories(ip_reassembly PUBLIC ${CMAKE_CURRENT_LIST_DIR}) target_include_directories(ip_reassembly PUBLIC ${CMAKE_SOURCE_DIR}/deps/crc32) -target_link_libraries(ip_reassembly packet_parser) +target_link_libraries(ip_reassembly packet_manager) add_subdirectory(test)
\ No newline at end of file diff --git a/infra/packet_io/CMakeLists.txt b/infra/packet_io/CMakeLists.txt index 4d0baa9..8edf21d 100644 --- a/infra/packet_io/CMakeLists.txt +++ b/infra/packet_io/CMakeLists.txt @@ -1,3 +1,3 @@ add_library(packet_io pcap_io.c marsio_io.c packet_io.c) target_include_directories(packet_io PUBLIC ${CMAKE_CURRENT_LIST_DIR}) -target_link_libraries(packet_io marsio pcap packet_parser)
\ No newline at end of file +target_link_libraries(packet_io marsio pcap packet_manager)
\ No newline at end of file diff --git a/infra/packet_manager/CMakeLists.txt b/infra/packet_manager/CMakeLists.txt new file mode 100644 index 0000000..5a3949f --- /dev/null +++ b/infra/packet_manager/CMakeLists.txt @@ -0,0 +1,15 @@ +add_library(packet_manager + packet_utils.c + packet_parser.c + packet_builder.c + packet_filter.c + packet_dump.c + checksum.c) +target_include_directories(packet_manager PUBLIC ${CMAKE_CURRENT_LIST_DIR}) +target_include_directories(packet_manager PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash) +target_include_directories(packet_manager PUBLIC ${CMAKE_SOURCE_DIR}/deps/logger) +target_include_directories(packet_manager PUBLIC ${CMAKE_SOURCE_DIR}/include) +target_include_directories(packet_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra) +target_link_libraries(packet_manager tuple logger dablooms) + +add_subdirectory(test)
\ No newline at end of file diff --git a/infra/packet_parser/checksum.c b/infra/packet_manager/checksum.c index c7a8266..c7a8266 100644 --- a/infra/packet_parser/checksum.c +++ b/infra/packet_manager/checksum.c diff --git a/infra/packet_parser/checksum.h b/infra/packet_manager/checksum.h index 3d762bb..3d762bb 100644 --- a/infra/packet_parser/checksum.h +++ b/infra/packet_manager/checksum.h diff --git a/infra/packet_parser/packet_builder.c b/infra/packet_manager/packet_builder.c index fc95a81..fc95a81 100644 --- a/infra/packet_parser/packet_builder.c +++ b/infra/packet_manager/packet_builder.c diff --git a/infra/packet_parser/packet_dump.c b/infra/packet_manager/packet_dump.c index 8f12d2d..8f12d2d 100644 --- a/infra/packet_parser/packet_dump.c +++ b/infra/packet_manager/packet_dump.c diff --git a/infra/packet_parser/packet_dump.h b/infra/packet_manager/packet_dump.h index 75af2c6..75af2c6 100644 --- a/infra/packet_parser/packet_dump.h +++ b/infra/packet_manager/packet_dump.h diff --git a/infra/packet_parser/packet_filter.c b/infra/packet_manager/packet_filter.c index 6167dbc..6167dbc 100644 --- a/infra/packet_parser/packet_filter.c +++ b/infra/packet_manager/packet_filter.c diff --git a/infra/packet_parser/packet_filter.h b/infra/packet_manager/packet_filter.h index 9a30f62..9a30f62 100644 --- a/infra/packet_parser/packet_filter.h +++ b/infra/packet_manager/packet_filter.h diff --git a/infra/packet_parser/packet_helper.h b/infra/packet_manager/packet_helper.h index 4782fb9..4782fb9 100644 --- a/infra/packet_parser/packet_helper.h +++ b/infra/packet_manager/packet_helper.h diff --git a/infra/packet_parser/packet_parser.c b/infra/packet_manager/packet_parser.c index c206f19..c206f19 100644 --- a/infra/packet_parser/packet_parser.c +++ b/infra/packet_manager/packet_parser.c diff --git a/infra/packet_parser/packet_parser.h b/infra/packet_manager/packet_parser.h index d85ed1c..d85ed1c 100644 --- a/infra/packet_parser/packet_parser.h +++ b/infra/packet_manager/packet_parser.h diff --git a/infra/packet_parser/packet_private.h b/infra/packet_manager/packet_private.h index 69a2fb3..69a2fb3 100644 --- a/infra/packet_parser/packet_private.h +++ b/infra/packet_manager/packet_private.h diff --git a/infra/packet_parser/packet_utils.c b/infra/packet_manager/packet_utils.c index 79485ec..79485ec 100644 --- a/infra/packet_parser/packet_utils.c +++ b/infra/packet_manager/packet_utils.c diff --git a/infra/packet_parser/test/CMakeLists.txt b/infra/packet_manager/test/CMakeLists.txt index f68a294..3d12184 100644 --- a/infra/packet_parser/test/CMakeLists.txt +++ b/infra/packet_manager/test/CMakeLists.txt @@ -1,59 +1,59 @@ add_executable(gtest_tunnel gtest_tunnel.cpp) -target_link_libraries(gtest_tunnel packet_parser gtest) +target_link_libraries(gtest_tunnel packet_manager gtest) add_executable(gtest_udp_utils gtest_udp_utils.cpp) -target_link_libraries(gtest_udp_utils packet_parser gtest) +target_link_libraries(gtest_udp_utils packet_manager gtest) add_executable(gtest_tcp_utils gtest_tcp_utils.cpp) -target_link_libraries(gtest_tcp_utils packet_parser gtest) +target_link_libraries(gtest_tcp_utils packet_manager gtest) add_executable(gtest_ip4_utils gtest_ip4_utils.cpp) -target_link_libraries(gtest_ip4_utils packet_parser gtest) +target_link_libraries(gtest_ip4_utils packet_manager gtest) add_executable(gtest_ip6_utils gtest_ip6_utils.cpp) -target_link_libraries(gtest_ip6_utils packet_parser gtest) +target_link_libraries(gtest_ip6_utils packet_manager gtest) add_executable(gtest_mpls_utils gtest_mpls_utils.cpp) -target_link_libraries(gtest_mpls_utils packet_parser gtest) +target_link_libraries(gtest_mpls_utils packet_manager gtest) add_executable(gtest_eth_utils gtest_eth_utils.cpp) -target_link_libraries(gtest_eth_utils packet_parser gtest) +target_link_libraries(gtest_eth_utils packet_manager gtest) add_executable(gtest_vlan_utils gtest_vlan_utils.cpp) -target_link_libraries(gtest_vlan_utils packet_parser gtest) +target_link_libraries(gtest_vlan_utils packet_manager gtest) add_executable(gtest_vxlan_utils gtest_vxlan_utils.cpp) -target_link_libraries(gtest_vxlan_utils packet_parser gtest) +target_link_libraries(gtest_vxlan_utils packet_manager gtest) add_executable(gtest_gre0_utils gtest_gre0_utils.cpp) -target_link_libraries(gtest_gre0_utils packet_parser gtest) +target_link_libraries(gtest_gre0_utils packet_manager gtest) add_executable(gtest_gre1_utils gtest_gre1_utils.cpp) -target_link_libraries(gtest_gre1_utils packet_parser gtest) +target_link_libraries(gtest_gre1_utils packet_manager gtest) add_executable(gtest_l2tp_utils gtest_l2tp_utils.cpp) -target_link_libraries(gtest_l2tp_utils packet_parser gtest) +target_link_libraries(gtest_l2tp_utils packet_manager gtest) add_executable(gtest_gtp1_utils gtest_gtp1_utils.cpp) -target_link_libraries(gtest_gtp1_utils packet_parser gtest) +target_link_libraries(gtest_gtp1_utils packet_manager gtest) add_executable(gtest_gtp2_utils gtest_gtp2_utils.cpp) -target_link_libraries(gtest_gtp2_utils packet_parser gtest) +target_link_libraries(gtest_gtp2_utils packet_manager gtest) add_executable(gtest_packet_frag gtest_packet_frag.cpp) -target_link_libraries(gtest_packet_frag packet_parser gtest) +target_link_libraries(gtest_packet_frag packet_manager gtest) add_executable(gtest_packet_parser gtest_packet_parser.cpp) -target_link_libraries(gtest_packet_parser packet_parser gtest) +target_link_libraries(gtest_packet_parser packet_manager gtest) add_executable(gtest_packet_builder gtest_packet_builder.cpp) -target_link_libraries(gtest_packet_builder packet_parser gtest) +target_link_libraries(gtest_packet_builder packet_manager gtest) add_executable(gtest_packet_filter gtest_packet_filter.cpp) -target_link_libraries(gtest_packet_filter packet_parser gtest) +target_link_libraries(gtest_packet_filter packet_manager gtest) add_executable(gtest_packet_ldbc gtest_packet_ldbc.cpp) -target_link_libraries(gtest_packet_ldbc packet_parser gtest) +target_link_libraries(gtest_packet_ldbc packet_manager gtest) include(GoogleTest) gtest_discover_tests(gtest_tunnel) diff --git a/infra/packet_parser/test/gtest_eth_utils.cpp b/infra/packet_manager/test/gtest_eth_utils.cpp index e00f032..e00f032 100644 --- a/infra/packet_parser/test/gtest_eth_utils.cpp +++ b/infra/packet_manager/test/gtest_eth_utils.cpp diff --git a/infra/packet_parser/test/gtest_gre0_utils.cpp b/infra/packet_manager/test/gtest_gre0_utils.cpp index e195f42..e195f42 100644 --- a/infra/packet_parser/test/gtest_gre0_utils.cpp +++ b/infra/packet_manager/test/gtest_gre0_utils.cpp diff --git a/infra/packet_parser/test/gtest_gre1_utils.cpp b/infra/packet_manager/test/gtest_gre1_utils.cpp index 92669f7..92669f7 100644 --- a/infra/packet_parser/test/gtest_gre1_utils.cpp +++ b/infra/packet_manager/test/gtest_gre1_utils.cpp diff --git a/infra/packet_parser/test/gtest_gtp1_utils.cpp b/infra/packet_manager/test/gtest_gtp1_utils.cpp index 270d36a..270d36a 100644 --- a/infra/packet_parser/test/gtest_gtp1_utils.cpp +++ b/infra/packet_manager/test/gtest_gtp1_utils.cpp diff --git a/infra/packet_parser/test/gtest_gtp2_utils.cpp b/infra/packet_manager/test/gtest_gtp2_utils.cpp index 584abf7..584abf7 100644 --- a/infra/packet_parser/test/gtest_gtp2_utils.cpp +++ b/infra/packet_manager/test/gtest_gtp2_utils.cpp diff --git a/infra/packet_parser/test/gtest_ip4_utils.cpp b/infra/packet_manager/test/gtest_ip4_utils.cpp index f6e98a1..f6e98a1 100644 --- a/infra/packet_parser/test/gtest_ip4_utils.cpp +++ b/infra/packet_manager/test/gtest_ip4_utils.cpp diff --git a/infra/packet_parser/test/gtest_ip6_utils.cpp b/infra/packet_manager/test/gtest_ip6_utils.cpp index 94a51f8..94a51f8 100644 --- a/infra/packet_parser/test/gtest_ip6_utils.cpp +++ b/infra/packet_manager/test/gtest_ip6_utils.cpp diff --git a/infra/packet_parser/test/gtest_l2tp_utils.cpp b/infra/packet_manager/test/gtest_l2tp_utils.cpp index 3eb16bd..3eb16bd 100644 --- a/infra/packet_parser/test/gtest_l2tp_utils.cpp +++ b/infra/packet_manager/test/gtest_l2tp_utils.cpp diff --git a/infra/packet_parser/test/gtest_mpls_utils.cpp b/infra/packet_manager/test/gtest_mpls_utils.cpp index 9d3f0d8..9d3f0d8 100644 --- a/infra/packet_parser/test/gtest_mpls_utils.cpp +++ b/infra/packet_manager/test/gtest_mpls_utils.cpp diff --git a/infra/packet_parser/test/gtest_packet_builder.cpp b/infra/packet_manager/test/gtest_packet_builder.cpp index 0bbf2bb..0bbf2bb 100644 --- a/infra/packet_parser/test/gtest_packet_builder.cpp +++ b/infra/packet_manager/test/gtest_packet_builder.cpp diff --git a/infra/packet_parser/test/gtest_packet_filter.cpp b/infra/packet_manager/test/gtest_packet_filter.cpp index 3263b90..3263b90 100644 --- a/infra/packet_parser/test/gtest_packet_filter.cpp +++ b/infra/packet_manager/test/gtest_packet_filter.cpp diff --git a/infra/packet_parser/test/gtest_packet_frag.cpp b/infra/packet_manager/test/gtest_packet_frag.cpp index 222925b..222925b 100644 --- a/infra/packet_parser/test/gtest_packet_frag.cpp +++ b/infra/packet_manager/test/gtest_packet_frag.cpp diff --git a/infra/packet_parser/test/gtest_packet_ldbc.cpp b/infra/packet_manager/test/gtest_packet_ldbc.cpp index e2dd430..e2dd430 100644 --- a/infra/packet_parser/test/gtest_packet_ldbc.cpp +++ b/infra/packet_manager/test/gtest_packet_ldbc.cpp diff --git a/infra/packet_parser/test/gtest_packet_parser.cpp b/infra/packet_manager/test/gtest_packet_parser.cpp index 4fa3985..4fa3985 100644 --- a/infra/packet_parser/test/gtest_packet_parser.cpp +++ b/infra/packet_manager/test/gtest_packet_parser.cpp diff --git a/infra/packet_parser/test/gtest_tcp_utils.cpp b/infra/packet_manager/test/gtest_tcp_utils.cpp index 47223e4..47223e4 100644 --- a/infra/packet_parser/test/gtest_tcp_utils.cpp +++ b/infra/packet_manager/test/gtest_tcp_utils.cpp diff --git a/infra/packet_parser/test/gtest_tunnel.cpp b/infra/packet_manager/test/gtest_tunnel.cpp index 6d92cf0..6d92cf0 100644 --- a/infra/packet_parser/test/gtest_tunnel.cpp +++ b/infra/packet_manager/test/gtest_tunnel.cpp diff --git a/infra/packet_parser/test/gtest_udp_utils.cpp b/infra/packet_manager/test/gtest_udp_utils.cpp index d8b2c9a..d8b2c9a 100644 --- a/infra/packet_parser/test/gtest_udp_utils.cpp +++ b/infra/packet_manager/test/gtest_udp_utils.cpp diff --git a/infra/packet_parser/test/gtest_vlan_utils.cpp b/infra/packet_manager/test/gtest_vlan_utils.cpp index 0832ef1..0832ef1 100644 --- a/infra/packet_parser/test/gtest_vlan_utils.cpp +++ b/infra/packet_manager/test/gtest_vlan_utils.cpp diff --git a/infra/packet_parser/test/gtest_vxlan_utils.cpp b/infra/packet_manager/test/gtest_vxlan_utils.cpp index 81a24fe..81a24fe 100644 --- a/infra/packet_parser/test/gtest_vxlan_utils.cpp +++ b/infra/packet_manager/test/gtest_vxlan_utils.cpp diff --git a/infra/packet_parser/CMakeLists.txt b/infra/packet_parser/CMakeLists.txt deleted file mode 100644 index f9e4995..0000000 --- a/infra/packet_parser/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -add_library(packet_parser - packet_utils.c - packet_parser.c - packet_builder.c - packet_filter.c - packet_dump.c - checksum.c) -target_include_directories(packet_parser PUBLIC ${CMAKE_CURRENT_LIST_DIR}) -target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/deps/uthash) -target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/deps/logger) -target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/include) -target_include_directories(packet_parser PUBLIC ${CMAKE_SOURCE_DIR}/infra) -target_link_libraries(packet_parser tuple logger dablooms) - -add_subdirectory(test)
\ No newline at end of file diff --git a/infra/plugin_manager/CMakeLists.txt b/infra/plugin_manager/CMakeLists.txt index 313b56d..fed928c 100644 --- a/infra/plugin_manager/CMakeLists.txt +++ b/infra/plugin_manager/CMakeLists.txt @@ -2,7 +2,7 @@ add_library(plugin_manager plugin_manager.c) target_include_directories(plugin_manager PUBLIC ${CMAKE_CURRENT_LIST_DIR}) target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/include/) target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/) -target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/packet_parser) +target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/packet_manager) target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/session_manager) target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/tuple) target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/deps/) diff --git a/infra/session_manager/CMakeLists.txt b/infra/session_manager/CMakeLists.txt index 2df7c74..5404fde 100644 --- a/infra/session_manager/CMakeLists.txt +++ b/infra/session_manager/CMakeLists.txt @@ -10,6 +10,6 @@ add_library(session_manager target_include_directories(session_manager PUBLIC ${CMAKE_CURRENT_LIST_DIR}) target_include_directories(session_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/) target_include_directories(session_manager PUBLIC ${CMAKE_SOURCE_DIR}/include) -target_link_libraries(session_manager timeout packet_parser tcp_reassembly) +target_link_libraries(session_manager timeout packet_manager tcp_reassembly) add_subdirectory(test)
\ No newline at end of file diff --git a/test/debug_plugin/CMakeLists.txt b/test/debug_plugin/CMakeLists.txt index 38be076..707044e 100644 --- a/test/debug_plugin/CMakeLists.txt +++ b/test/debug_plugin/CMakeLists.txt @@ -1,6 +1,6 @@ # build libdebug_plugin.so add_library(debug_plugin SHARED debug_plugin.c) -target_link_libraries(debug_plugin stellar_lib session_manager packet_parser) +target_link_libraries(debug_plugin stellar_lib session_manager packet_manager) target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/) target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/infra) set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map") diff --git a/test/decoders/session_flags/CMakeLists.txt b/test/decoders/session_flags/CMakeLists.txt index 2ed5407..7e76d4a 100644 --- a/test/decoders/session_flags/CMakeLists.txt +++ b/test/decoders/session_flags/CMakeLists.txt @@ -41,7 +41,7 @@ set_target_properties(session_flags_test_main ) set(LINK_FLAGS "-rdynamic") -target_link_libraries(session_flags_test_main PUBLIC gtest cjson-static stellar_lib -Wl,--whole-archive packet_parser -Wl,--no-whole-archive) +target_link_libraries(session_flags_test_main PUBLIC gtest cjson-static stellar_lib -Wl,--whole-archive packet_manager -Wl,--no-whole-archive) add_subdirectory(test_based_on_stellar) diff --git a/test/packet_tool/CMakeLists.txt b/test/packet_tool/CMakeLists.txt index 981c32a..c008e95 100644 --- a/test/packet_tool/CMakeLists.txt +++ b/test/packet_tool/CMakeLists.txt @@ -1,5 +1,5 @@ add_executable(packet_tool packet_tool.c) -target_link_libraries(packet_tool packet_parser pcap) +target_link_libraries(packet_tool packet_manager pcap) file(COPY split_pcap.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) file(COPY cmp_layers.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
\ No newline at end of file |
