You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came into contact with this very good library and I want to differentiate the data obtained. How to distinguish the data received/sent by the network card? You still need to make your own judgment based on the source MAC.
The text was updated successfully, but these errors were encountered:
You can set direction on a capture: https://docs.rs/pcap/latest/pcap/struct.Capture.html#method.direction. By using the Direction you can choose whether you only want incoming or outgoing packets. If you still want both, but somehow to distinguish them, you probably will need two captures - one for incoming, one for outgoing.
I hope this asnwers your question! If it doesn't please feel free to re-open the issue and continue the discussion.
I just came into contact with this very good library and I want to differentiate the data obtained. How to distinguish the data received/sent by the network card? You still need to make your own judgment based on the source MAC.
The text was updated successfully, but these errors were encountered: