Wireshark-dev: Re: [Wireshark-dev] Add restrictions to arguments of dumpcap

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 7 May 2009 14:16:40 -0700

On May 7, 2009, at 1:50 PM, Sake Blok wrote:

Make every CLO have effect on *all* interfaces until an interface is
specified, then make all following CLO's have an effect on *only* the last
listed interface.

That sounds good to me.

Presumably a "global" option is overridden by per-interface options, e.g.:

	dumpcap -s 96 -i en0 -i en1 -y IEEE802_11_RADIO_AVS -s 128

would capture on en0 with a snapshot size of 96 and the default link- layer type and on en1 with a snapshot size of 128 and a link-layer type of IEEE802_11_RADIO_AVS.

What happens with multiple -i options and the -L option? Does it list, for each interface, the available link-layer type values, or does it fail?