{{define "title"}}Hex → pcap{{end}} {{define "toolbar-info"}}Build a pcap file from hex · Load example{{end}} {{define "content"}} {{with .Data}} {{if .Error}}{{end}}

Packet

Paste hex for each layer. The fields are decoded and concatenated into one packet. Any field may be empty, so you can also paste a whole packet into a single field. Spaces, newlines, :, -, 0x and \x are ignored.

Options

IPv4/IPv6 length, IPv4 header checksum, TCP/UDP/ICMP/ICMPv6/SCTP checksum, UDP length. The end of the layer 3 field also sets the TCP data offset and the length of the SCTP chunk the payload belongs to (paste chunk data without padding).

Used when “Custom…” is selected
{{with .Result}}

Preview

Packet length
{{len .Packet}} bytes
Link type
{{.LinkTypeName}} ({{.LinkType}})
Layers
layer 2: {{.L2Len}} · layer 3: {{.L3Len}} · payload: {{.L7Len}}
{{if .Fixed}}

Fixups IP header at offset {{.IPOffset}}

{{range .Fix.Changes}} {{end}}
FieldOldNew
{{.Field}}{{.Old}}{{.New}}
{{range .Fix.Notes}}

{{.}}

{{end}} {{end}}

Hex dump changed bytes are underlined

{{- range .Dump -}}
{{.Offset}}  {{range .Bytes}}{{.Hex}}{{.Sep}}{{end}} {{.ASCII}}
{{end -}}
{{end}} {{end}} {{end}}