summaryrefslogtreecommitdiffhomepage
path: root/src/pkt.rs
Commit message (Collapse)AuthorAgeFilesLines
* Refactor main.rs; modulize opt.rs and pkt.rsdilluti0n2026-01-161-15/+97
| | | | | Move option parsing to opt.rs and packet handling to pkt.rs from main.rs
* pkt: support overriding TCP checksum (badsum) in split_packet_0dilluti0n2026-01-161-10/+36
| | | | | | - Extend split_packet_0 to optionally override TCP checksum. - Compute L3 header length for IPv4/IPv6 and patch checksum field when requested. - Wire fake_clienthello to set checksum to 0 when fake_badsum() is enabled.
* Add option --fake-badsumdilluti0n2026-01-141-0/+5
|
* Add fake ClientHello injection runtime optionsdilluti0n2025-12-301-3/+7
| | | | | - Add --fake flag to enable fake ClientHello injection - Add --fake-ttl option to override TTL of fake packets
* Consolidate fake ClientHello and split packet logicdilluti0n2025-12-301-24/+21
| | | | Introduce send_segment abstraction
* Prevent infinite loop on packet injection/filteringdilluti0n2025-12-301-1/+1
| | | | | - linux: fix infinite NFQUEUE loop by marking injected packets - windows: by marking packet to impostor
* Implement fake ClientHello injection with const TTLdilluti0n2025-12-301-2/+76
|
* Add dummy tls clienthello packetdilluti0n2025-12-301-0/+63
|
* Update copyright notices to notice email instead of github linkdilluti0n2025-09-051-1/+1
|
* Add license document and copyright notice headersdilluti0n2025-09-051-0/+17
|
* Remove unused field PktView.rawdilluti0n2025-08-211-2/+1
|
* Introduce PktView to remove duplicate packet parsinghskim2025-08-201-0/+18
- Added new `pkt.rs` with `PktView` struct wrapping `IpSlice` and `TcpSlice` - Updated `split_packet` and `handle_packet` to use `PktView` - Removed repeated calls to `IpSlice::from_slice` / `TcpSlice::from_slice` - Simplifies code and ensures parsing happens only once per packet