Skip to main content

Module dissect

Module dissect 

Source
Expand description

Best-effort, Wireshark-style dissection of BGP messages.

This module walks the same wire grammar the parsers consume, but instead of producing model structs it produces a DissectionNode tree in which every field carries its byte range. It is a separate pass over already-received bytes: nothing here runs on the default parsing hot path, and a dissector never fails — on truncated or malformed input the tree simply stops at the last field that could be walked, which is exactly the “show me where parsing died” experience a byte-level inspector wants.

Functions§

dissect_bgp_message
Dissect a standalone BGP message (offsets relative to the message start).