| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
The main motivation for using poll + recv (even with a single FD) is
that blocking recv() is not interrupted by SIGINT, likely due to
SA_RESTART being enabled by default. On the other hand, poll() is
always interruptible by signals regardless of SA_RESTART.
Instead of manually configuring sigaction in Rust, using poll here is
simpler and more reliable.
|
| |
|
|
| |
* important: it works !!
|
| |
|
|
|
|
|
|
|
| |
* Introduced `etherparse` and `arrayvec` dependencies to parse and reconstruct IP/TCP packets
* Replaced legacy TCP payload extraction with robust parsing via `IpSlice` and `TcpSlice`
* Added `split_packet` to split TCP payloads and reconstruct headers
* Added stub `send_to_raw` function to transmit custom-crafted packets (implementation pending)
* Modified `handle_packet` to detect ClientHello and perform split+delay packet transmission
* Improved xt_u32 fallback logic and control flow using early returns and internal closure
|
| | |
|
| | |
|
| |
|
|
|
|
| |
is_client_hello now passes the record's fragment field up to the end
of the payload. TLSMsg::get_bytes now returns None if size exceeds
payload.len().
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Since we only interested in header, not robust parsing, full TCP
reassembly isn't nece: Just prevent panic when the payload is shorter
than expacted.
|
| |
|
|
|
| |
* implement: get_tcp_payload, parse tcp payload from given ip payload
(seems like does not work well...)
|
| |
|
|
| |
filter clienthello packet
|
| |
|
|
| |
* mock POSIX signal handling with tokio
|
| | |
|
| |
|