Liking cljdoc? Tell your friends :D

paclo.dev

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)

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)
raw docstring

fragment-noteclj

(fragment-note l3)

Return "frag@<offset>" when L3 fragment metadata is present.

Return "frag@<offset>" when L3 fragment metadata is present.
sourceraw docstring

HBH-BAD-OVERRUNclj

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).
sourceraw docstring

HBH-OKclj

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)
sourceraw docstring

hex->bytesclj

(hex->bytes s)
source

hexdclj

(hexd pkt)

Render packet map :bytes as hex. Returns a string.

Render packet map :bytes as hex. Returns a string.
sourceraw docstring

parse-hexclj

(parse-hex s)

Parse hex string s into a packet map.

Parse hex string `s` into a packet map.
sourceraw docstring

summarizeclj

(summarize pkt)

Print a compact summary and return the original packet map.

Print a compact summary and return the original packet map.
sourceraw docstring

vlan-summaryclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close