Examples
An mDNS-like UDP header 1
An mDNS-like UDP header 1. Run the example, then compare the stated answer and settings.
Input
2ee014e900080000Expected checks
Case-insensitiveContains "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
2ee114e900080000Expected checks
Case-insensitiveContains "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
2ee214e900080000Expected checks
Case-insensitiveContains "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
2ee314e900080000Expected checks
Case-insensitiveContains "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
2ee414e900080000Expected checks
Case-insensitiveContains "12004"
Contains "5353"- Input format
Hex
No Data - JSON
Input
04 89 00 35 00 2c 01 01Expected answer
JSON{
"Source port": 1161,
"Destination port": 53,
"Length": 44,
"Checksum": "0x0101"
}{
"Source port": 1161,
"Destination port": 53,
"Length": 44,
"Checksum": "0x0101"
}- Input format
Hex
Not Enough Bytes
Input
04 89 00Expected rejection
Message containsNeed 8 bytes for a UDP Header- Input format
Hex
With Data - JSON
Input
04 89 00 35 00 2c 01 01 02 02Expected answer
JSON{
"Source port": 1161,
"Destination port": 53,
"Length": 44,
"Checksum": "0x0101",
"Data": "0x0202"
}{
"Source port": 1161,
"Destination port": 53,
"Length": 44,
"Checksum": "0x0101",
"Data": "0x0202"
}- Input format
Hex
Format reference: Parse UDP background and specification