Replies: 2 comments 2 replies
-
On Wed, Jul 07, 2021 at 09:45:28AM -0700, Thai Nguyen wrote:
Any help would be appreciated!
Which network interface should the programm use?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
On Wed, Jul 07, 2021 at 09:31:48PM -0700, Thai Nguyen wrote:
Unless I'm missing something here.
use pnet::transport::TransportChannelType::Layer4;
versus
use pnet::transport::{icmp_packet_iter, transport_channel, TransportChannelType};
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tk-nguyen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm writing a simple ICMP program to test the functionality of this crate. When I try to run it, I can't see any packets sent out. I've tried capturing packets on my interface, but it came up with nothing. Here's my code:
And here's the output of tcpdump:
I use sudo because
transport_channel
won't run under normal user permissions.Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions