pub enum ExtcapStep<'a> {
Interfaces(InterfacesStep),
Dlts(DltsStep<'a>),
Config(ConfigStep<'a>),
ReloadConfig(ReloadConfigStep<'a>),
Capture(CaptureStep<'a>),
}Expand description
The step of extcap to execute, which is returned from ExtcapArgs::run.
Each step has its own type which contains the relevant methods for each
step. See the docs for each individual step to for details on what
operations should be performed.
Variants§
Interfaces(InterfacesStep)
List the interfaces and toolbar controls supported by this extcap
implementation in stdout for Wireshark’s consumption. Corresponds to the
--extcap-interfaces argument in extcap.
See the documentation on InterfacesStep for details.
Dlts(DltsStep<'a>)
Prints the DLT to stdout for consumption by Wireshark. Corresponds to
the --extcap-dlts argument in extcap.
See the documentation on DltsStep for details.
Config(ConfigStep<'a>)
List the configs available for the given interface in stdout for
Wireshark’s consumption. Corresponds to the --extcap-config argument
in extcap.
See the documentation on ConfigStep for details.
ReloadConfig(ReloadConfigStep<'a>)
Reloads the available options for a given config and prints them out for
Wireshark’s consumption. The default implementation looks up config returned from configs and calls its reload function. Corresponds to the --extcap-reload-option
argument in extcap.
See the documentation on ReloadConfigStep for details.
Capture(CaptureStep<'a>)
Corresponds to the --capture step in Wireshark. In this step, the
implementation should start capturing from the external interface and
write the output to the fifo given in CaptureStep::fifo.
See the documentation on CaptureStep for details.