how do one determine the length in bytes of each of the UDP header fields? asked 03 Nov '14, 04:07 Seaford Bacchas |
One Answer:
I'd recommend reading the RFCs, e.g. https://www.ietf.org/rfc/rfc768.txt. The UDP header has a fixed length of 8 bytes: Source Port, Destination Port (2 bytes each), Length (2 Bytes), and a (more or less optional) Checksum (2 Bytes). answered 03 Nov '14, 04:11 Jasper ♦♦ Or maybe the TCP/IP guide. (03 Nov '14, 05:02) Jaap ♦ So you are saying each field is 2 bytes? (03 Nov '14, 16:25) Seaford Bacchas Yep, UDP header fields are 2 bytes each. (04 Nov '14, 00:34) Jasper ♦♦ |
So you are saying each field is 2 bytes?