Wireshark-dev: Re: [Wireshark-dev] Extcap DLTs
From: Roland Knall <rknall@xxxxxxxxx>
Date: Tue, 24 Nov 2015 12:55:57 +0100
You could try USER0. The problem here is, that I have to register the extcap interface with the other interfaces at some point, and usually this happens way before the capture starts (at which point an extcap utility might know which DLT it could produce). Therefore I first ask the utility for all interfaces and then for each DLT per interface.

What you could do is provide 5 interfaces, one for each individual DLT. This clobbers up the interface list a little bit, but at least you would be able to use the correct DLTs for the interfaces. Combine this with a preference which interfaces should be supported, and you could reduce the clobber a little bit.

We actually provide a plug-in with our extcap utility, which allows the user to set more generic options via  a gui hook-up (using the plugin_if functionality). But you could also use a more generic preference in Wireshark itself and read from there.

regards,
Roland


On Tue, Nov 24, 2015 at 12:29 PM, Dario Lombardo <dario.lombardo.ml@xxxxxxxxx> wrote:
I'm working on a new extcap that will leverage randpkt-core to give wireshark a local random packet generator through randpktdump (the new extcap).
I'm stucking with the DLTs part. The extcap must answer to the external call about which DLTs it can generate. Randpkt-core can generate 5 different DLTs, depending on the selected packet type.
What is the extcap supposed to answer to --extcap-dtls ? When asked for that, the packet type is still not known.
Thanks for your help.
Dario.

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe