This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

udp header

0

how do one determine the length in bytes of each of the UDP header fields?

asked 03 Nov '14, 04:07

Seaford%20Bacchas's gravatar image

Seaford Bacchas
11113
accept rate: 0%

So you are saying each field is 2 bytes?

(03 Nov '14, 16:24) Seaford Bacchas

One Answer:

1

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's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

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 ♦♦