icmp.core

ICMP-HEADER

MAX-BUF-SIZE

MSG-TYPE-HEADERS

MSG-TYPE-LIST

MSG-TYPE-LOOKUP

MSG-TYPE-MAP

read-icmp

(read-icmp buf)

Read/decode an ICMP payload from buf

write-icmp

(write-icmp msg-map)

Write/encode an ICMP payload into an allocated buffer using msg-map. Returns the allocated buffer sliced to the size written.