I want to send an ARP packet. I construct the ARPPacket object and then as far as i have guessed, it must be sent thru the JPCAPSender class sendPacket method but it accepts only the IPPacket which extends Packet class just like ARPPacket. Now, how to send the ARPPack
et ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to send an ARP packet. I construct the ARPPacket object and then as far as i have guessed, it must be sent thru the JPCAPSender class sendPacket method but it accepts only the IPPacket which extends Packet class just like ARPPacket. Now, how to send the ARPPack
et ?
You can't send packets with jpcap. It is a passive packet capture mechanism, like tcpdump.