I'm still unsuccessfully trying to send the ARP packet that I created using Packet.Net using SharpPcap. The problem is even that I am sending the package using device.SendPacket , it is not actually being sent, and I have no idea why.
This is my code:
ARPPacket arpPacket = new ARPPacket(ARPOperation.Request, PhysicalAddress.Parse("000000000000"), targetIpAddress, device.Interface.MacAddress, myIpAddress); EthernetPacket ethPacket = new EthernetPacket(device.Interface.MacAddress, PhysicalAddress.Parse("FFFFFFFFFFFF"), EthernetPacketType.Arp); ethPacket.PayloadPacket = arpPacket; device.Open(); device.SendPacket(ethPacket); device.Close();
By the way, it is important that I send my own ARP packages, and not just use the SharpPcap ARP class.
source share