|
UDP ICMP IP Headers
This was created for my own reference, but feel free to use these and find any bugs in it!
IP HEADER
0 ... 3 |
4 ... 7 |
8 ... 11 |
12 ... 15 |
16 ... 19 |
20 ... 23 |
24 ... 27 |
28 ... 31 |
version .ip_v |
header length (in words) .ip_hl |
type of service .ip_tos |
total len (in bytes) .ip_len |
Identification .ip_id |
flags(bits 16-18) (IP_RF, IP_DF, IP_MF) |
|
offset (bits 19-31) (IP_OFFMASK) |
.ip_off
|
TTL .ip_ttl |
protocol .ip_p |
checksum .ip_sum |
source IP .ip_src |
dest IP .ip_dst |
options .??? |
... data ... |
ICMP HEADER
(First 2 words in the ip data area if used)
0 ... 7 |
8 ... 15 |
16 ... 23 |
24 ... 31 |
type .type |
code .code |
checksum .checksum |
identifier .id |
sequence number .sequence |
... data ... |
UDP HEADER
(First 2 words in the ip data area if used)
0 ... 7 |
8 ... 15 |
16 ... 23 |
24 ... 31 |
source port .??? |
destination port .??? |
length .??? |
checksum (pseudo IP header + UDP header + UDP header) .??? |
... UDP data ... |
PSEUDO IP HEADER
(Fields used to calculate UDP checksum)
0 ... 7 |
8 ... 15 |
16 ... 23 |
24 ... 31 |
IP source address |
IP destination address |
zero |
protocol |
UDP length |
UDP header |
... UDP data ... |
|