Parse IPv4 header

Given an IPv4 header, this operations parses and displays each field in an easily readable format.

Input: TextResult: HTML with a sandboxed preview

Text input

Run to see the result

Examples

Read a reserved-address UDP packet 1

Read a reserved-address UDP packet 1. Run the example, then compare the stated answer and settings.

Input

4500001c0064400040114e2ec0000201c633640a

Expected checks

Case-insensitive
Contains "192.0.2.1"
Contains "198.51.100.10"
Contains "64"
Input format
Hex
Output format
Table
Read a reserved-address UDP packet 2

Read a reserved-address UDP packet 2. Run the example, then compare the stated answer and settings.

Input

4500001c0065400040114e2bc0000202c633640b

Expected checks

Case-insensitive
Contains "192.0.2.2"
Contains "198.51.100.11"
Contains "64"
Input format
Hex
Output format
Table
Read a reserved-address UDP packet 3

Read a reserved-address UDP packet 3. Run the example, then compare the stated answer and settings.

Input

4500001c0066400040114e28c0000203c633640c

Expected checks

Case-insensitive
Contains "192.0.2.3"
Contains "198.51.100.12"
Contains "64"
Input format
Hex
Output format
Table
Read a reserved-address UDP packet 4

Read a reserved-address UDP packet 4. Run the example, then compare the stated answer and settings.

Input

4500001c0067400040114e25c0000204c633640d

Expected checks

Case-insensitive
Contains "192.0.2.4"
Contains "198.51.100.13"
Contains "64"
Input format
Hex
Output format
Table
Read a reserved-address UDP packet 5

Read a reserved-address UDP packet 5. Run the example, then compare the stated answer and settings.

Input

4500001c0068400040114e22c0000205c633640e

Expected checks

Case-insensitive
Contains "192.0.2.5"
Contains "198.51.100.14"
Contains "64"
Input format
Hex
Output format
Table
Correctly formatted HTML output

Input

45 00 00 3c 1c 46 40 00 40 06 b1 e6 c0 a8 00 01 c0 a8 00 02 3c 73 63 72 69 70 74 3e 61 6c 65 72 74 28 31 33 33 37 29 3c 2f 73 63 72 69 70 74 3e

Expected answer

<script>alert(1337)</script>
Input format
Hex
Output format
Data (raw)
regression for Uint8Array.concat crash on truncated raw input

Input

E@

Expected answer

Empty result
Input format
Raw
Output format
Data (raw)

Format reference: Parse IPv4 header background and specification

Related tools

Browse networking tools