Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UDP (udp)

Reached from

Lower layerSelectorValue
ipv4protocol17 (0x11)
ipv6next_header17 (0x11)
ipv6_hopoptsnext_header17 (0x11)
ipv6_routenext_header17 (0x11)
ipv6_srhnext_header17 (0x11)
ipv6_fragnext_header17 (0x11)
ipv6_dstoptsnext_header17 (0x11)

Fields

FieldTypeDefaultAutoDescription
src_portuint(16)49152Source port.
dst_portuint(16)9Destination port; selects the next layer when it is Auto (53 = DNS, 67 / 68 = DHCP, 4789 = VXLAN…).
lengthuint(16)Length of the header and payload in octetsLength of header and payload in octets (Auto).
checksumuint(16)Internet checksum with pseudo header over the header and everything after it; a computed 0 is sent as all onesInternet checksum with the IPv4 / IPv6 pseudo header (Auto; 0 becomes 0xffff).

Next layer

The next layer is selected by dst_port; when the field is Auto the builder writes the value of the protocol stacked above. When decoding, src_port is looked up too if the first field matches no entry.

ValueProtocolNote
520 (0x0208)rip
521 (0x0209)ripng
1701 (0x06a5)l2tpv2
1985 (0x07c1)hsrp
1985 (0x07c1)hsrpv2
2029 (0x07ed)hsrpv2
2152 (0x0868)gtpu
3222 (0x0c96)glbp
4789 (0x12b5)vxlan
6081 (0x17c1)geneve
6635 (0x19eb)mpls
9899 (0x26ab)sctp
646 (0x0286)ldp
3784 (0x0ec8)bfd
4784 (0x12b0)bfd
6784 (0x1a80)bfd
2123 (0x084b)gtpv2
5060 (0x13c4)sip
5004 (0x138c)rtp
5005 (0x138d)rtcp
53 (0x0035)dns
67 (0x0043)dhcpv4
68 (0x0044)dhcpv4
69 (0x0045)tftp
123 (0x007b)ntp
161 (0x00a1)snmp
162 (0x00a2)snmp
514 (0x0202)syslog
546 (0x0222)dhcpv6
547 (0x0223)dhcpv6
1812 (0x0714)radius
1813 (0x0715)radius
319 (0x013f)ptp
319 (0x013f)ptp_sync
319 (0x013f)ptp_delay_req
319 (0x013f)ptp_pdelay_req
319 (0x013f)ptp_pdelay_resp
320 (0x0140)ptp
320 (0x0140)ptp_follow_up
320 (0x0140)ptp_delay_resp
320 (0x0140)ptp_pdelay_resp_follow_up
320 (0x0140)ptp_announce
320 (0x0140)ptp_signaling
320 (0x0140)ptp_management

Constraints

LevelRule
warningheader and payload at least 8 octets

Sample templates