Ejemplo n.º 1
0
 internal ARPRequest_Ethernet(MACAddress ourMAC, Address ourIP, MACAddress targetMAC, Address targetIP, MACAddress arpTargetMAC)
     : base(1, ourMAC, ourIP, targetMAC, targetIP, 42, arpTargetMAC)
 {
 }
Ejemplo n.º 2
0
        protected ARPPacket_Ethernet(UInt16 operation, MACAddress senderMAC, Address senderIP,
                                     MACAddress targetMAC, Address targetIP, int packet_size, MACAddress arpTargetMAC)
            : base(targetMAC, senderMAC, 1, 0x0800, 6, 4, operation, packet_size)
        {
            for (int i = 0; i < 6; i++)
            {
                mRawData[22 + i] = senderMAC.bytes[i];
                mRawData[32 + i] = arpTargetMAC.bytes[i];
            }
            for (int i = 0; i < 4; i++)
            {
                mRawData[28 + i] = senderIP.address[i];
                mRawData[38 + i] = targetIP.address[i];
            }

            initFields();
        }
Ejemplo n.º 3
0
 internal ARPReply_Ethernet(MACAddress ourMAC, Address ourIP, MACAddress targetMAC, Address targetIP)
     : base(2, ourMAC, ourIP, targetMAC, targetIP, 42, MACAddress.None)
 {
 }