Skip to content
Bytefield templates

IPv4 header

RFC 791 — Version / IHL / DSCP, length, identification, flags + offset, TTL, protocol, checksum, addresses.

Template previewBytefield
Rendering…

Make it your own.

(draw-column-headers)

(draw-box "Ver")
(draw-box "IHL")
(draw-box "DSCP / ECN")
(draw-box "Total Length")

(draw-box "Identification" {:span 2})
(draw-box "Flags + Fragment Offset" {:span 2})

(draw-box "TTL")
(draw-box "Protocol")
(draw-box "Header Checksum" {:span 2})

(draw-box "Source IP Address" {:span 4})

(draw-box "Destination IP Address" {:span 4})

(draw-box "Options" {:span 4})

(draw-gap "Payload")

(draw-bottom)