rust-pcap / pcap

Rust language pcap library
Apache License 2.0
620 stars 144 forks source link

Allow calling `sendpacket` after creating `PacketStream` #192

Closed axelf4 closed 2 years ago

axelf4 commented 2 years ago

I would find it useful to be able to inject packets in between awaiting incoming packets. Guessing either (i) delegation of sendpacket; or (ii) adding a method PacketStream::inner() that gives a mutable reference to the underlying Capture; would do the trick.