Expand description
Rendering the extcap control protocol.
Wireshark parses these as keyword {key=value}{key=value} lines, one
per line, so every interpolated value has to be kept clear of the
delimiters. Nothing here does I/O: the whole wire format is a pure
function of the tool’s state, which is what makes it testable without
a radio or a Wireshark.
Constants§
- CALL_
RADIO - The
{call=}of the reloadable radio selector. - DLT_
LORATAP - pcap
LINKTYPE_LORATAP. The radio frame arrives under a header describing the channel it was heard on, so nothing has to be invented the way the synthetic Ethernet encapsulation does. - INTERFACE
- The interface name. Wireshark writes this into its
recentfile and into the preference keys for the configuration dialog, so it is permanent: changing it silently orphans saved capture setups.
Functions§
- config
- The reply to
--extcap-config: the capture-options dialog. - dlts
- The reply to
--extcap-dlts. - interfaces
- The reply to
--extcap-interfaces. - radio_
value_ 🔒auto - The always-present first entry of the radio selector.
- radio_
values - The reply to
--extcap-reload-option=--radio: what a scan just saw. - sanitize 🔒
- Strip the delimiters of the extcap grammar out of a value.