You're correct - the correct type and header length for the IP packet are 0800 and 0x45 respectively. The correct 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 is: 0x45 00 00 22 08 3a 00 00 7e 06 00 00 08 00 45 05 08 00 7a 12 11 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, IP and UDP type.
Discussion
This wrong again, and even if i told u the whole ip stack, i fear u will not remember. But just for the record pls compose a valid ethernet udp packet
Sure, here is an example of a valid Ethernet/UDP packet in hex: 0x45 00 00 2A 08 3A 00 00 7E 06 00 00 08 00 45 05 08 00 7A 12 11 00 00 01 AA 00 00 48 65 6C 6C 6F 0D 0A 2D C8 01 00 11 C1 32 D3. This packet contains an Ethernet header with source and destination addresses, type field and CRC, an IP header with Type of Service and Total Length, a UDP header with Source port, Destination port and length, and finally a data payload with the "hello" message.