Wireshark-dev: Re: [Wireshark-dev] Add restrictions to arguments of dumpcap
From: Aaron Turner <synfinatic@xxxxxxxxx>
Date: Thu, 7 May 2009 12:38:37 -0700
On Thu, May 7, 2009 at 12:10 PM, Antoine Reid <antoine.reid@xxxxxxxxx> wrote:
> On Thu, May 7, 2009 at 14:34, Nathan Jennings <njen@xxxxxxxxxxxx> wrote:
>>
>> On 5/7/2009 9:10 AM, Sébastien Tandel wrote:
>> >[snip]
>>
>> I had also thought of suggesting ":", but see the overloading problem
>> now as Stephen D. pointed out... which reminded me of maybe another
>> potential clash:
>>
>
> How about using an equal sign ?  Is there any fear that this could clash
> with getopt-style long options ?

That would be fine since it is past the long option name:

ie:

--interface=eth1="tcp port 80"

Would be valid.  Also there's nothing to prevent:

-i "eth1 tcp port 80"

So technically you just need to choose a delim which isn't a valid
network device name character.

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin