Commit Graph

6 Commits

Author SHA1 Message Date
Guy Harris 84776702fa Pass the number of packets to be captured to "capture()" as an argument,
rather than making it static.

Don't print the "Capturing on <interface>" message until you actually
start capturing, and print it regardless of whether the interface was
explicitly specified or not (that's what snoop and tcpdump do).

svn path=/trunk/; revision=1485
2000-01-15 10:23:10 +00:00
Guy Harris 278b21900a If no "-i" flag is specified to Tethereal when no file is to be read,,
or to Ethereal when the "-k" flag is specified, i.e. when a capture is
to be started immediately, use "pcap_lookupdev()" to pick an interface,
just as tcpdump does.

svn path=/trunk/; revision=1482
2000-01-15 06:05:21 +00:00
Nathan Neulinger dbf3bf6177 better command line syntax description
svn path=/trunk/; revision=1478
2000-01-14 23:26:18 +00:00
Gerald Combs 62207b4d85 Set an initial (blank) filter to get around the peculiarities in RH
6.1's libpcap.

svn path=/trunk/; revision=1476
2000-01-14 19:05:30 +00:00
Gilbert Ramirez b65829c808 Check for existence of cf.iface before calling capture(). Change
usage statement accordingly.

svn path=/trunk/; revision=1474
2000-01-14 14:21:50 +00:00
Guy Harris b799cb10d9 Add "tethereal", a tty-oriented derivative of Ethereal that works like
Sun's snoop or like tcpdump.

svn path=/trunk/; revision=1468
2000-01-14 06:46:00 +00:00