-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
Attempting to use stream() on an offline capture (e.g. returned by pcap::capture::from_file) results in NonNonBlock error. The offline capture however cannot be switched to non-blocking mode (it's not supported by the API of the pcap crate nor by pcap_setnonblock).
I think it would be nice if the stream also work for the offline stream. I imagine the async future would always return as ready until the whole file is read.
I have a use case in unit testing packet processing that normally happens with live capture.
I would also be happy to contribute but I'll likely need some pointers in what needs to done. I'm relatively new to Rust.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels