Commit Graph

20 Commits

Author SHA1 Message Date
luwenpeng
d8963af5f8 Add packet_build.cpp support imitate_tcp_packet() / imitate_udp_packet() 2024-06-24 14:31:22 +08:00
luwenpeng
de4c15f43c Refactored packet API to support struct layer (using union to contain different types of encapsulation headers) 2024-06-14 19:24:27 +08:00
luwenpeng
1f78881cbb rename struct packet_layer to struct raw_layer 2024-06-14 10:58:40 +08:00
luwenpeng
020c8303c6 rename packet_get_layers_number to packet_get_layer_count 2024-06-13 10:11:30 +08:00
luwenpeng
01958b56c5 rename layer_type to layer_proto 2024-06-12 18:21:45 +08:00
luwenpeng
1a7f74025b packet parser suppoort skip IPv6 extension headers 2024-05-30 17:55:21 +08:00
luwenpeng
8092b3a90e update inject packet API 2024-05-29 19:01:05 +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
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
e8c61a1752 Add test case: inject IPv4 based TCP payload packet after recv C2S first payload 2024-05-22 11:38:32 +08:00
luwenpeng
be9a68935b Update the format of tuple to string output 2024-05-20 15:44:04 +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
4c50a6dca7 Add injected packets to duplicate packet filter 2024-05-16 10:32:42 +08:00
luwenpeng
7b20747c8f Update session.h: support get tuple6 by session 2024-05-15 16:29:33 +08:00
luwenpeng
cda77c6f6f Add the packet_injector tool to test the packet injection effect 2024-05-11 18:58:36 +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
95e0982fd1 Add implementation of injecting tcp rst package 2024-04-30 15:30:43 +08:00