Example #1
0
 public void FixSelfRecord(IPAddress fixIp, PhysicalAddress fixMac)
 {
     if (!fixMac.Equals(_probeMAC))
     {
         _ncard.SendPacket(ArpPacketBuilder.BuildArpReply(_probeMAC, _probeMAC, fixIp, IPAddress.Loopback, fixMac, _probeMAC, 0));
     }
 }
Example #2
0
 public void BroadcastARPReply(IPAddress senderIP, PhysicalAddress senderMAC, IPAddress targetIP, PhysicalAddress targetMAC, int vlanID)
 {
     _ncard.SendPacket(ArpPacketBuilder.BuildArpReply(_probeMAC, NetAddress.BroadcastMAC, senderIP, targetIP, senderMAC, targetMAC, vlanID));
 }
Example #3
0
 public void UnicastARPRequest(PhysicalAddress dstMAC, IPAddress senderIP, PhysicalAddress senderMAC, IPAddress targetIP, int vlanID)
 {
     _ncard.SendPacket(ArpPacketBuilder.BuildArpRequest(_probeMAC, dstMAC, senderIP, targetIP, senderMAC, NetAddress.ZeroMAC, vlanID));
 }