Commit Graph

179 Commits

Author SHA1 Message Date
luwenpeng
48428e52fe replace 'ifndef define' to 'pragam once' 2024-06-19 15:06:14 +08:00
luwenpeng
c3fd452793 Add test case for tunnel 2024-06-19 14:43:32 +08:00
luwenpeng
327d6e7b14 Support struct tunnel 2024-06-17 17:42:30 +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
10528bcfd3 remove tuple.h from include/stellar 2024-06-07 16:50:21 +08:00
luwenpeng
4c0ad823d4 Add L2TP utils 2024-06-07 14:47:38 +08:00
luwenpeng
a50ecb3dbb Add GRE utils 2024-06-05 16:44:32 +08:00
luwenpeng
3ce5ed11db Add VXLAN utils 2024-06-05 14:36:04 +08:00
luwenpeng
bb469ca1ed Add VLAN utils 2024-06-05 12:06:34 +08:00
luwenpeng
a1e693a735 Refactoring the MPLS utils 2024-06-05 10:40:51 +08:00
luwenpeng
ade7b4c8ab Add support for parsing Teredo IPv6 tunneling 2024-06-04 18:08:45 +08:00
luwenpeng
bd69493991 Enhanced packet_parser tools 2024-06-04 17:26:37 +08:00
luwenpeng
8c4f4c9f72 Add support for parsing IP Authentication Header 2024-06-04 15:48:34 +08:00
luwenpeng
ae2e36b382 Bugfix: packet parser
* Corrected the acquisition of GRE header length
    * Check whether the total length of IP is less than the length of IP header
2024-06-03 17:53:43 +08:00
luwenpeng
eb1056b4f9 Add IP proto utils function 2024-06-02 00:36:50 +08:00
luwenpeng
18fe1e2e41 Add support for parsing PW Ethernet and Enhanced MPLS parsing 2024-06-02 00:07:33 +08:00
luwenpeng
f3b92a8a15 Add support for parsing PPP headers with variable lengths 2024-05-31 17:00:45 +08:00
luwenpeng
2d958dbe07 bugfix: calculate L2TPv2 offset 2024-05-30 18:45:47 +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
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