rust-pcap / pcap

Rust language pcap library
Apache License 2.0
595 stars 138 forks source link

Tcp Reassembly #303

Closed evanzhang87 closed 1 year ago

evanzhang87 commented 1 year ago

Hello, previously I was using google/gopacket for TCP stream analysis, but as the traffic increased, the performance of Golang did not meet my expectations, especially in terms of memory usage. So I decided to try doing the same thing using Rust. There is a critical part in my project which involves TCP Reassembly, but it seems that I cannot directly implement it within this project because there is no TCP packet parsing. I'd like to know if there are plans to support this aspect in the future.

Stargateur commented 1 year ago

I speak in my name, no at all the purpose of this project. Unfortunately I do not know any crates that do tcp reassembly, maybe https://github.com/smoltcp-rs/smoltcp do it.

Wojtek242 commented 1 year ago

As pcap is merely around libpcap it cannot do that. See here. @Stargateur has made a good suggestion on what you could use instead.