60 likes | 225 Views
ARP Request/Reply. Can we modify our previous device-driver so it will allow us to send and receive ‘raw’ packets?. ARP packet (Type 0x0806). Ethernet Header. ARP Protocol Header. Data (optional). 14 bytes 28 bytes. ARP packet-header. 32 bits. Hardware Type. Protocol Type.
E N D
ARP Request/Reply Can we modify our previous device-driver so it will allow us to send and receive ‘raw’ packets?
ARP packet (Type 0x0806) Ethernet Header ARP Protocol Header Data (optional) 14 bytes 28 bytes
ARP packet-header 32 bits Hardware Type Protocol Type Hardware Length Protocol Length Operation (1=request, 2=reply) Sender Hardware Address (upper 4 octets) Sender Hardware Address (lower 2 octets) Sender Protocol Address (MSW) Sender Protocol Address (LSW) Target Hardware Address (upper 2 octets) Target Hardware Address (lower 4 octets) Target Protocol Address For Ethernet: Hardware Type = 0x0001, Hardware Length = 0x06 For Internet: Protocol Type = 0x0800, Protocol Length = 0x04