Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Capture to be used async for both read an write #343

Open
Alexei-Kornienko opened this issue Apr 15, 2024 · 1 comment
Open

Enable Capture to be used async for both read an write #343

Alexei-Kornienko opened this issue Apr 15, 2024 · 1 comment

Comments

@Alexei-Kornienko
Copy link

Currently when you wrap a Capture in async stream you can use it read-only. I would like to be able to use it for both reading packed async and using sendpacket async as well.

My main goal is to write something similar to https://github.com/rodizio1/EZ-WifiBroadcast/
or https://github.com/svpcom/wfb-ng
Main idea of that projects is to use Wifi adapter in monitor mode and use this mode to convert it to general purpose radio transmitter/receiver for sending data over the air. I would like to do the same in Rust but for that I need to both send and receive packets on the same capture struct. Currently it's only possible in blocking mode

@Wojtek242
Copy link
Collaborator

PRs welcome :-)

kleinesfilmroellchen added a commit to kleinesfilmroellchen/pingxelflut that referenced this issue Jun 4, 2024
Wrong payload was being sent. This seems to work wonderfully, even though I’m using a new ICMP packet independent of the pcap capture (see rust-pcap/pcap#343)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants