Parse UDP

Parses a UDP header and payload (if present).

Input: TextResult: Structured JSON

Text input

Run to see the result

Examples

An mDNS-like UDP header 1

An mDNS-like UDP header 1. Run the example, then compare the stated answer and settings.

Input

2ee014e900080000

Expected checks

Case-insensitive
Contains "12000"
Contains "5353"
Input format
Hex
An mDNS-like UDP header 2

An mDNS-like UDP header 2. Run the example, then compare the stated answer and settings.

Input

2ee114e900080000

Expected checks

Case-insensitive
Contains "12001"
Contains "5353"
Input format
Hex
An mDNS-like UDP header 3

An mDNS-like UDP header 3. Run the example, then compare the stated answer and settings.

Input

2ee214e900080000

Expected checks

Case-insensitive
Contains "12002"
Contains "5353"
Input format
Hex
An mDNS-like UDP header 4

An mDNS-like UDP header 4. Run the example, then compare the stated answer and settings.

Input

2ee314e900080000

Expected checks

Case-insensitive
Contains "12003"
Contains "5353"
Input format
Hex
An mDNS-like UDP header 5

An mDNS-like UDP header 5. Run the example, then compare the stated answer and settings.

Input

2ee414e900080000

Expected checks

Case-insensitive
Contains "12004"
Contains "5353"
Input format
Hex
No Data - JSON

Input

04 89 00 35 00 2c 01 01

Expected answer

JSON
{
    "Source port": 1161,
    "Destination port": 53,
    "Length": 44,
    "Checksum": "0x0101"
}
Input format
Hex
Not Enough Bytes

Input

04 89 00

Expected rejection

Message contains
Need 8 bytes for a UDP Header
Input format
Hex
With Data - JSON

Input

04 89 00 35 00 2c 01 01 02 02

Expected answer

JSON
{
    "Source port": 1161,
    "Destination port": 53,
    "Length": 44,
    "Checksum": "0x0101",
    "Data": "0x0202"
}
Input format
Hex

Format reference: Parse UDP background and specification

Related tools

Browse networking tools