Commit Graph

23 Commits

Author SHA1 Message Date
luwenpeng
3014e0feef refactor: move struct laye and struct tunnel to packet.h 2024-08-23 15:21:52 +08:00
luwenpeng
b9d6637800 refactor: move tcp_segment API from packet.h to stellar.h 2024-08-21 18:18:13 +08:00
luwenpeng
4ee08c136a refactor: rename packet_craft.cpp/h to packet_builder.cpp/h 2024-08-16 14:15:03 +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
07ce636f64 test: add imitate_tcp_packet test case (TCP over GREv0: GRE enable checksum) 2024-07-15 15:07:38 +08:00
luwenpeng
2c0ec4072f enhance: imitate_tcp_packet() support setting tcp options 2024-07-02 17:55:55 +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
d8963af5f8 Add packet_build.cpp support imitate_tcp_packet() / imitate_udp_packet() 2024-06-24 14:31:22 +08:00
luwenpeng
48428e52fe replace 'ifndef define' to 'pragam once' 2024-06-19 15:06:14 +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
8c4f4c9f72 Add support for parsing IP Authentication Header 2024-06-04 15:48:34 +08:00
luwenpeng
18fe1e2e41 Add support for parsing PW Ethernet and Enhanced MPLS parsing 2024-06-02 00:07:33 +08:00
luwenpeng
6c1f9d390c packet parser support L2TPv2 2024-05-24 16:14:20 +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
611fda598f Adjust thread index type to uint16 for future expansion & Organize stellar directory files 2024-04-25 18:17:20 +08:00
luwenpeng
74f0504d3d Update Stellar export header and add stellar_get_current_thread_index() function 2024-04-23 14:38:58 +08:00