Directories
¶
| Path | Synopsis |
|---|---|
|
Package analyze holds streaming, bounded aggregators over a trace's events (REQUIREMENTS.md L11): Overview, Devices, Patterns and Coverage.
|
Package analyze holds streaming, bounded aggregators over a trace's events (REQUIREMENTS.md L11): Overview, Devices, Patterns and Coverage. |
|
cmd
|
|
|
mbtracectl
command
Command mbtracectl reads packet traces (pcap or pcapng, from tcpdump, Wireshark, dumpcap or tshark) and reports the Modbus/TCP traffic in them.
|
Command mbtracectl reads packet traces (pcap or pcapng, from tcpdump, Wireshark, dumpcap or tshark) and reports the Modbus/TCP traffic in them. |
|
export
|
|
|
mbcapexport
Package mbcapexport turns the transactions of a passive trace into an MBCAP capture that modbusctl can replay as a virtual device (docs/MBCAP-EXPORT.md).
|
Package mbcapexport turns the transactions of a passive trace into an MBCAP capture that modbusctl can replay as a virtual device (docs/MBCAP-EXPORT.md). |
|
subtrace
Package subtrace writes the packets of selected connections as a pcapng file that Wireshark opens (REQUIREMENTS.md L15): original timestamps and link types, the source's interface descriptions, and a section header that names the tool and the selection.
|
Package subtrace writes the packets of selected connections as a pcapng file that Wireshark opens (REQUIREMENTS.md L15): original timestamps and link types, the source's interface descriptions, and a section header that names the tool and the selection. |
|
timeline
Package timeline writes a trace's events as CSV or JSON Lines, one row or line per event, ordered by time (with a bounded reorder window) or in order of determination (ARCHITECTURE.md section 11, REQUIREMENTS.md L14).
|
Package timeline writes a trace's events as CSV or JSON Lines, one row or line per event, ordered by time (with a bounded reorder window) or in order of determination (ARCHITECTURE.md section 11, REQUIREMENTS.md L14). |
|
internal
|
|
|
flow
Package flow tracks TCP connections and reassembles each direction's byte stream, in order, within bounded memory.
|
Package flow tracks TCP connections and reassembles each direction's byte stream, in order, within bounded memory. |
|
link
Package link decodes the link, IP and TCP headers of a captured packet into a TCP segment.
|
Package link decodes the link, IP and TCP headers of a captured packet into a TCP segment. |
|
pair
Package pair matches the requests and responses of one connection into transactions (ARCHITECTURE.md section 9).
|
Package pair matches the requests and responses of one connection into transactions (ARCHITECTURE.md section 9). |
|
pcapio
Package pcapio reads classic pcap and pcapng files, plain or gzip, from a file or a stream, and writes them.
|
Package pcapio reads classic pcap and pcapng files, plain or gzip, from a file or a stream, and writes them. |
|
policy
Package policy holds no code.
|
Package policy holds no code. |
|
schemagen
Package schemagen writes a JSON Schema (draft 2020-12) for the JSON form of a Go value's type, as encoding/json writes it: struct fields by their json tags (omitempty fields are optional, the others required), no additional properties, named structs under $defs.
|
Package schemagen writes a JSON Schema (draft 2020-12) for the JSON form of a Go value's type, as encoding/json writes it: struct fields by their json tags (omitempty fields are optional, the others required), no additional properties, named structs under $defs. |
|
Package mbtcp frames Modbus/TCP: it cuts MBAP ADUs out of one direction's reassembled byte stream, survives gaps and garbage with a bounded resync, and decides which endpoint of a connection is the server.
|
Package mbtcp frames Modbus/TCP: it cuts MBAP ADUs out of one direction's reassembled byte stream, survives gaps and garbage with a bounded resync, and decides which endpoint of a connection is the server. |
|
Package model holds the events go-modbus-trace produces: connections, transactions with their ADUs and provenance, gaps, resyncs and notes.
|
Package model holds the events go-modbus-trace produces: connections, transactions with their ADUs and provenance, gaps, resyncs and notes. |
|
Package selection is the one transaction predicate the CLI, the exporters and applications share.
|
Package selection is the one transaction predicate the CLI, the exporters and applications share. |
|
Package trace is the facade of go-modbus-trace: it opens a packet trace (pcap or pcapng, plain or gzip, from a file or a stream), finds the Modbus/TCP traffic in it and reports what it found.
|
Package trace is the facade of go-modbus-trace: it opens a packet trace (pcap or pcapng, plain or gzip, from a file or a stream), finds the Modbus/TCP traffic in it and reports what it found. |
|
tracetest
Package tracetest builds synthetic packet traces with a known ground truth, for the tests of this module and of the applications built on it.
|
Package tracetest builds synthetic packet traces with a known ground truth, for the tests of this module and of the applications built on it. |
Click to show internal directories.
Click to hide internal directories.