Commit Graph

156 Commits

Author SHA1 Message Date
luwenpeng
fb700b43e4 In packet I/O dump file mode, force refresh stat before program exit 2024-05-29 18:12:46 +08:00
luwenpeng
963aa259b1 Add tools packet_parser 2024-05-29 17:55:44 +08:00
luwenpeng
ba1e651876 build stellar and stellar-devel rpm 2024-05-29 16:14:38 +08:00
luwenpeng
f82b85c979 Optimize integration testing
- Add injection package plug-in
- Add libstellar_dynamic.so to facilitate unit testing of upper-level plug-ins
2024-05-28 14:30:42 +08:00
luwenpeng
54385ed08b When the packet length is greater than the IP expected length, the padding data at the end of the frame will be trimmed. 2024-05-24 19:10:33 +08:00
luwenpeng
94fc1af6bd Install header files during rpm install 2024-05-24 16:41:51 +08:00
luwenpeng
6c1f9d390c packet parser support L2TPv2 2024-05-24 16:14:20 +08:00
luwenpeng
570c93e616 Add test case: inject IPv4 based (TCP payload & TCP FIN & TCP RST) packet after recv C2S first payload 2024-05-22 18:15:08 +08:00
luwenpeng
22f7ddb361 Add test case: inject IPv4 based TCP payload packet after recv S2C first payload 2024-05-22 14:05:36 +08:00
luwenpeng
e8c61a1752 Add test case: inject IPv4 based TCP payload packet after recv C2S first payload 2024-05-22 11:38:32 +08:00
luwenpeng
3701fc7361 Add session_set_discard 2024-05-20 17:02:16 +08:00
luwenpeng
be9a68935b Update the format of tuple to string output 2024-05-20 15:44:04 +08:00
luwenpeng
0e33a1b647 Resolve merge conflicts 2024-05-20 11:26:06 +08:00
yangwei
ccaddf7fdb 🧪 test(packet injector test): upgrade plugin manager 2024-05-20 10:11:17 +08:00
yangwei
e0ec3f2d52 feat(plugin manager): integrated plugin manager, build success 2024-05-20 10:09:18 +08:00
yangwei
db611561f6 🔧 build(Version.cmake): set version.txt in build directory 2024-05-20 10:06:31 +08:00
luwenpeng
5678cf645e gtest_inject_tcp_rst creates a working directory under the current path 2024-05-17 19:51:50 +08:00
luwenpeng
31a4267e23 support inject mutil packet base current packet 2024-05-17 19:10:28 +08:00
luwenpeng
c22e4e5955 recv SYN after FIN or RST is considered to be TCP port reuse 2024-05-17 17:38:08 +08:00
luwenpeng
32ae4618ef Add support for TCP port reuse (same tuple6 but different ISN) in session manager: evict old session and create new session 2024-05-16 19:21:12 +08:00
luwenpeng
1559f0a13e bugfix: session cannot get current flow direction on duplicate package 2024-05-16 17:07:53 +08:00
luwenpeng
d6ae7c79f7 Add test case: inject IPv4 based TCP RST packet after recv S2C first payload 2024-05-16 14:14:41 +08:00
luwenpeng
8d8a266f60 Optimize the output of log and stat 2024-05-16 11:52:14 +08:00
luwenpeng
4c50a6dca7 Add injected packets to duplicate packet filter 2024-05-16 10:32:42 +08:00
luwenpeng
fdc65067b2 stellar support monotonic time and real time 2024-05-16 10:13:43 +08:00
luwenpeng
1ef82a0c6a Packet IO dump file mode, automatically exits when all sessions are released 2024-05-15 18:01:24 +08:00
luwenpeng
44c2cf86e4 session_get_tcp_segment() and session_free_tcp_segment() support asynchronous calls 2024-05-15 17:47:57 +08:00
luwenpeng
00df68695e CI install tcpdump & wireshark-cli & jq 2024-05-15 17:13:55 +08:00
luwenpeng
7b20747c8f Update session.h: support get tuple6 by session 2024-05-15 16:29:33 +08:00
luwenpeng
5e10870833 Add test case: inject IPv4 based TCP RST packet after recv C2S first payload 2024-05-15 16:09:24 +08:00
luwenpeng
bb55ea68e0 Add test case: inject IPv4 based TCP RST packet after recv Sub-ACK 2024-05-15 15:07:52 +08:00
luwenpeng
b33dafff53 Add packet injector test frame 2024-05-15 14:48:15 +08:00
luwenpeng
cda77c6f6f Add the packet_injector tool to test the packet injection effect 2024-05-11 18:58:36 +08:00
luwenpeng
7f1e7a23de update debug API session_to_json 2024-05-09 17:40:14 +08:00
luwenpeng
13001003e2 Refactor enum session_stat with improved naming conventions 2024-05-09 16:32:45 +08:00
luwenpeng
cc380d9271 rename session_direction to flow_direction 2024-05-09 14:57:12 +08:00
luwenpeng
37d12ebcfc inject TCP RST test pass 2024-05-08 18:24:26 +08:00
luwenpeng
61ee619689 TCP reassembly add stat of TCP retransmit and TCP overlap 2024-05-06 17:33:02 +08:00
luwenpeng
309736f9f1 session manager support TCP fast open 2024-05-06 12:06:20 +08:00
luwenpeng
c59f178769 Update stat of session manager 2024-04-30 17:03:36 +08:00
luwenpeng
388144b8c0 Add stat of ip reassembly 2024-04-30 16:19:28 +08:00
luwenpeng
bdf899cf01 Move code scanning directories to dumpfile io 2024-04-30 15:47:45 +08:00
luwenpeng
95e0982fd1 Add implementation of injecting tcp rst package 2024-04-30 15:30:43 +08:00
luwenpeng
dc37306594 update session table add/del API 2024-04-30 15:29:31 +08:00
luwenpeng
e418c84b85 Add stat of inject packet and drop packet 2024-04-30 15:25:34 +08:00
luwenpeng
611fda598f Adjust thread index type to uint16 for future expansion & Organize stellar directory files 2024-04-25 18:17:20 +08:00
luwenpeng
17ca476c24 tcp session record last packet tcp payload length used to calculate seq of injected RST packets 2024-04-25 15:39:02 +08:00
luwenpeng
54a78389cf packet IO support inject packet and add inject packet stat 2024-04-25 15:34:46 +08:00
luwenpeng
476c5bac56 session table can search session by tuple6 or tuple4 or id 2024-04-24 11:39:15 +08:00
luwenpeng
74f0504d3d Update Stellar export header and add stellar_get_current_thread_index() function 2024-04-23 14:38:58 +08:00