Ethereal-dev: [Ethereal-dev] option "-i -" broken

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Fri, 24 Jun 2005 15:56:50 +0200
"-i -" in the getopts of ethereal got broken. Few days ago it used to
work. There's something with the "-" because if I use a named pipe
(fifo) it works fine.

I took a look at gtk/main.c  but could not found the reason.

[trunk/plugins/cellog] lego% cat t.cap | /usr/local/bin/ethereal -kl
-o 'user10.encap: cellog' -i -
ethereal: option requires an argument -- i
ethereal: option requires an argument -- i

ethereal [ -vh ] [ -klLnpQS ] [ -a <capture autostop condition> ] ...
        [ -b <capture ring buffer option> ] ...] [ -B capture buffer
size (Win32 only) ]
        [ -c <capture packet count> ] [ -f <capture filter> ]
        [ -g <packet number> ]
        [ -i <capture interface> ] [ -m <font> ] [ -N <name resolving flags> ]
        [ -o <preference/recent setting> ] ... 
        [ -r <infile> ] [ -R <read (display) filter> ] [ -s <capture snaplen> ] 
        [ -t <time stamp format> ]
        [ -w <savefile> ] [ -y <capture link type> ] [ -z <statistics> ]
        [ <infile> ]
[trunk/plugins/cellog] lego% cat t.cap | /usr/local/bin/ethereal -kl
-i - -o 'user10.encap: cellog'
ethereal: You can't specify both a live capture and a capture file to be read.

vs.

[trunk/plugins/cellog] lego% mkfifo tfifo ; /usr/local/bin/ethereal
-kl -i tfifo -o 'user10.encap: cellog' &
[1] 11548
[trunk/plugins/cellog] lego% cat t.cap >> tfifo 

-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan