title: Sending my own ARP packet using SharpPcap and Packet.Net
body: <p>I am trying unsuccessfully so far to send an ARP packet I have created with Packet.Net using SharpPcap. The problem is even though I send the packet using <code>device.SendPacket</code> it doesn't actually get sent, and I have no idea why.</p>
  
  <p>This is my code:</p>
  
  <pre><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();
  </code></pre>
  
  <p>By the way, it is important that I send my own ARP packets and not just use the SharpPcap ARP class.</p>