Skip to content
Packet diagrams (packetdiag) templates

packetdiag — IPv4 header

Bit-accurate IPv4 header layout.

Template previewPacket diagrams (packetdiag)
Rendering…

Make it your own.

packetdiag {
  colwidth = 32
  0-3:   Version
  4-7:   IHL
  8-15:  ToS
  16-31: Total length
  32-47: Identification
  48-50: Flags
  51-63: Fragment offset
  64-71: TTL
  72-79: Protocol
  80-95: Header checksum
  96-127: Source IP
  128-159: Destination IP
}