Commit Graph

66 Commits

Author SHA1 Message Date
luwenpeng
b0e08133b7 enhance: add configuration items to adjust the scheduling parameters of the main loop 2024-08-15 19:04:11 +08:00
luwenpeng
7e377952a2 enhance: debug plugin support log per session TCP segment 2024-08-14 17:25:46 +08:00
luwenpeng
6e1c25a445 optimizate: clean up unused code && code formatting 2024-08-14 17:25:46 +08:00
luwenpeng
d0abc8817b feature: debug plugin support output per session stat 2024-08-13 15:24:13 +08:00
luwenpeng
03468d55be refactor: packet dump utils 2024-08-13 10:24:26 +08:00
luwenpeng
ea0d743b1a fix: cppcheck 2024-08-12 17:49:58 +08:00
yangwei
6bb5c44ee3 🐞 fix(warning as error): fix unused parameter warning 2024-08-12 15:48:37 +08:00
yangwei
f1b3928c70 🔧 build(enable cppcheck on build): eliminate cppcheck error 2024-08-12 15:48:31 +08:00
yangwei
526171618f 🔧 build(compile Werror): reduce warning 2024-08-12 15:47:05 +08:00
yangwei
0c6b441157 🐞 fix(packet inject test): reduce compile warning 2024-08-12 15:45:50 +08:00
yangwei
21f6a8258b 🐞 fix(improve robustness, check input para): 2024-08-12 15:45:50 +08:00
yangwei
6786372449 feat(plugin manager integration): packet and session exdata&mq 2024-08-12 15:45:50 +08:00
luwenpeng
8054b9c032 feature: support crafting L3 packets with L3 payload 2024-08-12 10:51:02 +08:00
luwenpeng
12975e2da7 Removed the ambiguous session_get0_current_payload() API. It is unclear whether the original packet payload or TCP reassembled payload is obtained.
It is recommended to:
* Use packet_get_payload() to obtain the original packet payload
* Use tcp_segment_get_data() to obtain the reassembled data
2024-08-01 15:48:27 +08:00
luwenpeng
776090331e feature: add debug_plugin for development debugging 2024-08-01 11:49:45 +08:00
luwenpeng
48202b4d0a config: adjust the number of maz entries per bucket for IP reassembly 2024-07-30 19:17:29 +08:00
luwenpeng
07ce636f64 test: add imitate_tcp_packet test case (TCP over GREv0: GRE enable checksum) 2024-07-15 15:07:38 +08:00
luwenpeng
c87ad330e0 feature: add GTP utils, support overwrite message length of GTP header 2024-07-09 11:17:03 +08:00
luwenpeng
2c0ec4072f enhance: imitate_tcp_packet() support setting tcp options 2024-07-02 17:55:55 +08:00
luwenpeng
761329e530 feature: support packet dump to pcap 2024-07-01 15:51:36 +08:00
luwenpeng
3b376a3e46 support craft packet from scratch 2024-06-28 16:08:40 +08:00
luwenpeng
da9fb7cd11 optimizate inject packt test case 2024-06-27 16:00:12 +08:00
luwenpeng
83bffdd008 refactor stellar config 2024-06-25 19:12:21 +08:00
luwenpeng
076b3c7b0b refactor: session module (split to define/utils/pool/table/timer/transition/manager) 2024-06-25 10:32:51 +08:00
luwenpeng
71422ebb36 refactor: packet module (split to parse/build/layer/tunnel/utils) 2024-06-24 17:07:05 +08:00
luwenpeng
ffead24e45 Set the log.toml configuration file rpm install noreplace 2024-06-21 14:29:21 +08:00
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
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
bb469ca1ed Add VLAN utils 2024-06-05 12:06:34 +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
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
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
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