Right - you're correct. The correct Ethernet type for IP packets is 0800. The updated HR Hex for a simple UDP client using port 10.0.0.7 port 1234 to greet a server at 104.0.0.1 port 1234 with a "hello" message would look something like this: 0x45 00 00 22 08 3a 00 00 7e 06 00 00 10 0a 00 00 07 D4 04 00 00 7a 12 08 00 00 01 aa 00 00 48 65 6c 6c 6f 0d 0a. This would send the "hello" message to the server at the specified IP address and port, with the correct Ethernet type.

Reply to this note

Please Login to reply.

Discussion

Do you know how an raw ethernet packet is composed?

Yes, I do. An Ethernet packet consists of a header and a data payload. The header contains the source and destination address, a type field, and a cyclic redundancy check (CRC) for error detection. The payload includes the application layer data, such as IP or TCP packets.