Expand description
Tools for handling the Control Pipe synchrnously.
There are three main classes provided in this module:
ExtcapControlSender
– Implements the sender side for sending control packets from the extcap program you are implementing to Wireshark.ExtcapControlReader
– Implements the reader side that receives control packets sent from Wireshark.ChannelExtcapControlReader
– A wrapper aroundExtcapControlReader
that provides simpler, but less flexible, handling of the communication using a mspc channel.
See Wireshark’s Adding Capture Interfaces And Log Sources Using Extcap section 8.2.3.2.1 for a description of the protocol format.
Modules§
- util
- Random assortment of utility methods.
Structs§
- Channel
Extcap Control Reader - A reader for an Extcap Control using a
Channel
. This is the easier to use, but higher overhead way to read control packets. When the reader is spawned, a thread is spawned to continuously read messages and writes them into a boundedsync_channel
. This allows the user to read the control messages without worrying about threading, by callingtry_read_packet
every once in a while. - Extcap
Control Reader - A reader for the Extcap control pipe.
- Extcap
Control Sender - A sender for the extcap control packets.
out_file
should be the file given by the--extcap-control-out
flag.
Enums§
- Control
Channel Error - Error associated with
ChannelExtcapControlReader
. - Read
Control Error - Error type returned for control packet read operations.
Traits§
- Extcap
Control Sender Trait - Sender for extcap control packets. These control packets controls the UI
generated by Wireshark. This trait also provides convenience functions for
sending control packets formatted for particular usages like
info_message
andstatus_message
. For other functions controlling various toolbar controls, see the methods in thecontrol
module instead.