Quick REPL helpers for debugging and packet inspection.
Example: (-> HBH-OK parse-hex summarize) (-> HBH-BAD parse-hex summarize)
Quick REPL helpers for debugging and packet inspection. - (parse-hex s) ; hex string -> packet map - (summarize pktmap) ; print concise summary - (hexd pktmap) ; render :bytes as hex Example: (-> HBH-OK parse-hex summarize) (-> HBH-BAD parse-hex summarize)
(fragment-note l3)Return "frag@<offset>" when L3 fragment metadata is present.
Return "frag@<offset>" when L3 fragment metadata is present.
HBH TLV length overrun (len=0x0D exceeds the 14B option area by 1 byte).
HBH TLV length overrun (len=0x0D exceeds the 14B option area by 1 byte).
Ether(IPv6) + IPv6(PL=24, NH=HBH) + HBH(16B, NextHdr=UDP) + UDP(8B)
Ether(IPv6) + IPv6(PL=24, NH=HBH) + HBH(16B, NextHdr=UDP) + UDP(8B)
(hexd pkt)Render packet map :bytes as hex. Returns a string.
Render packet map :bytes as hex. Returns a string.
(parse-hex s)Parse hex string s into a packet map.
Parse hex string `s` into a packet map.
(summarize pkt)Print a compact summary and return the original packet map.
Print a compact summary and return the original packet map.
(vlan-summary vlan-tags)Join VLAN tag maps into a single display string, or nil when no tags exist.
Join VLAN tag maps into a single display string, or nil when no tags exist.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |