Replies: 1 comment
-
should be
The sender of the ARP request becomes the target of the reply, and the sender has the the MAC and IP of whoever answers. Note that the receiving logic still has issues - it's attempting to create an ARP packet from the next packet it receives without checking to see if this is actually an ARP packet. We should check whether it's an ARP packet first:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to do an ARP with pnet, it takes far long than expected
19798ms
1.5ms
So pnet is over 10000x slower than arping. I must be doing something wrong.
This is mostly drawn from the example at https://github.com/libpnet/libpnet/blob/master/examples/arp_packet.rs
Here is the code im using to send and receive the ARP requests.
Could anyone tell me what i'm doing wrong?
Am I actually just happening to intercept the arp reponse, not caused by my program at all?
Doing multiple runs against a non-router i get quite varies results
Which suggests to me im just happening to intercept them rather than causing them as a reply
Beta Was this translation helpful? Give feedback.
All reactions