Based on a patch from Brian Fundakowski Feldman, add support for setting
[obnox/wireshark/wip.git] / doc / tethereal.pod
1
2 =head1 NAME
3
4 tethereal - Dump and analyze network traffic
5
6 =head1 SYNOPSYS
7
8 B<tethereal>
9 S<[ B<-a> capture autostop condition ] ...>
10 S<[ B<-b> number of ring buffer files [:duration] ]>
11 S<[ B<-c> count ]>
12 S<[ B<-d> <layer type>==<selector>,<decode-as protocol> ]>
13 S<[ B<-D> ]>
14 S<[ B<-f> capture filter expression ]>
15 S<[ B<-F> file format ]>
16 S<[ B<-h> ]>
17 S<[ B<-i> interface ]> 
18 S<[ B<-l> ]>
19 S<[ B<-L> ]>
20 S<[ B<-n> ]>
21 S<[ B<-N> resolving flags ]>
22 S<[ B<-o> preference setting ] ...>
23 S<[ B<-p> ]>
24 S<[ B<-q> ]>
25 S<[ B<-r> infile ]>
26 S<[ B<-R> display filter expression ]>
27 S<[ B<-s> snaplen ]>
28 S<[ B<-S> ]>
29 S<[ B<-t> time stamp format ]>
30 S<[ B<-v> ]>
31 S<[ B<-V> ]>
32 S<[ B<-w> savefile ]>
33 S<[ B<-x> ]>
34 S<[ B<-y> link type ]>
35 S<[ B<-z> statistics-string ]>
36 S<[ filter expression ]>
37
38 =head1 DESCRIPTION
39
40 B<Tethereal> is a network protocol analyzer.  It lets you capture packet
41 data from a live network, or read packets from a previously saved
42 capture file, either printing a decoded form of those packets to the
43 standard output or writing the packets to a file.  B<Tethereal>'s native
44 capture file format is B<libpcap> format, which is also the format used
45 by B<tcpdump> and various other tools.  In addition, B<Tethereal> can
46 read capture files from B<snoop> and B<atmsnoop>, Shomiti/Finisar
47 B<Surveyor> captures, Novell B<LANalyzer> captures, Network
48 General/Network Associates DOS-based B<Sniffer> (compressed or
49 uncompressed) captures, Microsoft B<Network Monitor> captures, files
50 from AIX's B<iptrace>, Cinco Networks B<NetXRay> captures, captures from
51 Network Associates Windows-based B<Sniffer>, AG Group/WildPackets
52 B<EtherPeek>/B<TokenPeek>/B<AiroPeek> captures, captures from
53 B<RADCOM>'s WAN/LAN analyzer, B<Lucent/Ascend> router debug output,
54 files from HP-UX's B<nettl>, the dump output from B<Toshiba's> ISDN
55 routers, the output from B<i4btrace> from the ISDN4BSD project, the
56 output in B<IPLog> format from the Cisco Secure Intrusion Detection
57 System, B<pppd logs> (pppdump format), the output from VMS's
58 B<TCPIPtrace>/B<TCPtrace>/B<UCX$TRACE> utilities, the text output from
59 the B<DBS Etherwatch> VMS utility, traffic capture files from Visual
60 Networks' Visual UpTime, the output from B<CoSine> L2 debug, the output
61 from Accellent's 5Views LAN agents, captures in Endace Measurement
62 Systems' ERF format, Linux Bluez Bluetooth stack B<hcidump -w> traces,
63 and captures from Network Instruments Observer version 9.  There is no
64 need to tell B<Tethereal> what type of file you are reading; it will
65 determine the file type by itself.  B<Tethereal> is also capable of
66 reading any of these file formats if they are compressed using gzip. 
67 B<Tethereal> recognizes this directly from the file; the '.gz' extension
68 is not required for this purpose.
69
70 If the B<-w> flag is not specified, B<Tethereal> prints a decoded form
71 of the packets it captures or reads; otherwise, it writes those packets
72 to the file specified by that flag.
73
74 When printing a decoded form of packets, B<Tethereal> prints, by
75 default, a summary line containing the fields specified by the
76 preferences file (which are also the fields displayed in the packet list
77 pane in B<Ethereal>), although if it's printing packets as it captures
78 them, rather than printing packets from a saved capture file, it won't
79 print the "frame number" field.  If the B<-V> flag is specified, it
80 prints intead a protocol tree, showing all the fields of all protocols
81 in the packet.
82
83 When writing packets to a file, B<Tethereal>, by default, writes the
84 file in B<libpcap> format, and writes all of the packets it sees to the
85 output file.  The B<-F> flag can be used to specify the format in which
86 to write the file.  The following formats are supported:
87
88 =over 8
89
90 =item B<libpcap> - libpcap (tcpdump, Ethereal, etc.)
91
92 =item B<rh6_1libpcap> - Red Hat Linux 6.1 libpcap (tcpdump)
93
94 =item B<suse6_3libpcap> - SuSE Linux 6.3 libpcap (tcpdump)
95
96 =item B<modlibpcap> - modified libpcap (tcpdump)
97
98 =item B<nokialibpcap> - Nokia libpcap (tcpdump)
99
100 =item B<lanalyzer> - Novell LANalyzer
101
102 =item B<ngsniffer> - Network Associates Sniffer (DOS-based)
103
104 =item B<snoop> - Sun snoop
105
106 =item B<netmon1> - Microsoft Network Monitor 1.x
107
108 =item B<netmon2> - Microsoft Network Monitor 2.x
109
110 =item B<ngwsniffer_1_1> - Network Associates Sniffer (Windows-based) 1.1
111
112 =item B<ngwsniffer_2_0> - Network Associates Sniffer (Windows-based) 2.00x
113
114 =item B<visual> - Visual Networks traffic capture
115
116 =back
117
118 This list is also displayed by the B<-h> flag.
119
120 Read filters in B<Tethereal>, which allow you to select which packets
121 are to be decoded or written to a file, are very powerful; more fields
122 are filterable in B<Tethereal> than in other protocol analyzers, and the
123 syntax you can use to create your filters is richer.  As B<Tethereal>
124 progresses, expect more and more protocol fields to be allowed in read
125 filters.
126
127 Packet capturing is performed with the pcap library.  The capture filter
128 syntax follows the rules of the pcap library.  This syntax is different
129 from the read filter syntax.  A read filter can also be specified when
130 capturing, and only packets that pass the read filter will be displayed
131 or saved to the output file; note, however, that capture filters are much
132 more efficient than read filters, and it may be more difficult for
133 B<Tethereal> to keep up with a busy network if a read filter is
134 specified for a live capture.
135
136 Compressed file support uses (and therefore requires) the zlib library. 
137 If the zlib library is not present, B<Tethereal> will compile, but will
138 be unable to read compressed files.
139
140 A capture or read filter can either be specified with the B<-f> or B<-R>
141 option, respectively, in which case the entire filter expression must be
142 specified as a single argument (which means that if it contains spaces,
143 it must be quoted), or can be specified with command-line arguments
144 after the option arguments, in which case all the arguments after the
145 filter arguments are treated as a filter expression.  If the filter is
146 specified with command-line arguments after the option arguments, it's a
147 capture filter if a capture is being done (i.e., if no B<-r> flag was
148 specified) and a read filter if a capture file is being read (i.e., if a
149 B<-r> flag was specified).
150
151 =head1 OPTIONS
152
153 =over 4
154
155 =item -a
156
157 Specify a criterion that specifies when B<Tethereal> is to stop writing
158 to a capture file.  The criterion is of the form I<test>B<:>I<value>,
159 where I<test> is one of:
160
161 =for man .RS
162
163 =for html <P><DL>
164
165 =item duration
166
167 Stop writing to a capture file after I<value> seconds have elapsed.
168
169 =item filesize
170
171 Stop writing to a capture file after it reaches a size of I<value>
172 kilobytes (where a kilobyte is 1000 bytes, not 1024 bytes).
173
174 =for man .RE
175
176 =for html </DL>
177
178 =item -b
179
180 If a maximum capture file size was specified, cause B<Tethereal> to run
181 in "ring buffer" mode, with the specified number of files.  In "ring
182 buffer" mode, B<Tethereal> will write to several capture files. 
183 Their name is based on the number of the file and on the creation date 
184 and time.
185
186 When the first capture file fills up, B<Tethereal> will switch to writing
187 to the next file, until it fills up the last file, at which point it'll
188 discard the data in the first file (unless 0 is specified, in which case,
189 the number of files is unlimited) and start writing to that file and so on.
190
191 If the optional duration is specified, B<Tethereal> will switch also 
192 to the next file when the specified number of seconds has elapsed even
193 if the current file is not completely fills up.
194
195 You can only save files in B<libpcap> format when using a ring buffer.
196
197 =item -c
198
199 Set the default number of packets to read when capturing live
200 data.
201
202 =item -d
203
204 Specify that if the layer type in question (for example, B<tcp.port> or
205 B<udp.port> for a TCP or UDP port number) has the specified selector
206 value, packets should be dissected as the specified protocol.
207
208 Example: B<-d tcp.port==8888,http> will decode any traffic running over
209 TCP port 8888 as HTTP.
210
211 =item -D
212
213 Print a list of the interfaces on which B<Tethereal> can capture, and
214 exit.  For each network interface, a number and an
215 interface name, possibly followed by a text description of the
216 interface, is printed.  The interface name or the number can be supplied
217 to the B<-i> flag to specify an interface on which to capture.
218
219 This can be useful on systems that don't have a command to list them  
220 (e.g., Windows systems, or UNIX systems lacking B<ifconfig \-a>);
221 the number can be useful on Windows 2000 and later systems, where the
222 interface name is a somewhat complex string.
223
224 Note that "can capture" means that B<Tethereal> was able to open
225 that device to do a live capture; if, on your system, a program doing a
226 network capture must be run from an account with special privileges (for
227 example, as root), then, if B<Tethereal> is run with the B<-D> flag and
228 is not run from such an account, it will not list any interfaces.
229
230 =item -f
231
232 Set the capture filter expression.
233
234 =item -F
235
236 Set the file format of the output capture file.
237
238 =item -h
239
240 Print the version and options and exits.
241
242 =item -i
243
244 Set the name of the network interface or pipe to use for live packet
245 capture. 
246
247 Network interface names should match one of the names listed in
248 "B<tethereal -D>" (described above); a number, as reported by
249 "B<tethereal -D>", can also be used.  If you're using UNIX, "B<netstat
250 -i>" or "B<ifconfig -a>" might also work to list interface names,
251 although not all versions of UNIX support the B<-a> flag to B<ifconfig>.
252
253 If no interface is specified, B<Tethereal> searches the list of
254 interfaces, choosing the first non-loopback interface if there are any
255 non-loopback interfaces, and choosing the first loopback interface if
256 there are no non-loopback interfaces; if there are no interfaces,
257 B<Tethereal> reports an error and doesn't start the capture.
258
259 Pipe names should be either the name of a FIFO (named pipe) or ``-'' to
260 read data from the standard input.  Data read from pipes must be in
261 standard libpcap format.
262
263 =item -l
264
265 Flush the standard output after the information for each packet is
266 printed.  (This is not, strictly speaking, line-buffered if B<-V>
267 was specified; however, it is the same as line-buffered if B<-V> wasn't
268 specified, as only one line is printed for each packet, and, as B<-l> is
269 normally used when piping a live capture to a program or script, so that
270 output for a packet shows up as soon as the packet is seen and
271 dissected, it should work just as well as true line-buffering.  We do
272 this as a workaround for a deficiency in the Microsoft Visual C++ C
273 library.)
274
275 This may be useful when piping the output of B<Tethereal> to another
276 program, as it means that the program to which the output is piped will
277 see the dissected data for a packet as soon as B<Tethereal> sees the
278 packet and generates that output, rather than seeing it only when the
279 standard output buffer containing that data fills up.
280
281 =item -L
282
283 List the data link types supported by the interface and exit.
284
285 =item -n
286
287 Disable network object name resolution (such as hostname, TCP and UDP port
288 names).
289
290 =item -N
291
292 Turn on name resolving for particular types of addresses and port
293 numbers, with name resolving for other types of addresses and port
294 numbers turned off; the argument is a string that may contain the
295 letters B<m> to enable MAC address resolution, B<n> to enable network
296 address resolution, and B<t> to enable transport-layer port number
297 resolution.  This overrides B<-n> if both B<-N> and B<-n> are present.
298 The letter B<C> enables concurrent (asynchronous) DNS lookups.
299
300 =item -o
301
302 Set a preference value, overriding the default value and any value read
303 from a preference file.  The argument to the flag is a string of the
304 form I<prefname>B<:>I<value>, where I<prefname> is the name of the
305 preference (which is the same name that would appear in the preference
306 file), and I<value> is the value to which it should be set.
307
308 =item -p
309
310 I<Don't> put the interface into promiscuous mode.  Note that the
311 interface might be in promiscuous mode for some other reason; hence,
312 B<-p> cannot be used to ensure that the only traffic that is captured is
313 traffic sent to or from the machine on which B<Tethereal> is running,
314 broadcast traffic, and multicast traffic to addresses received by that
315 machine.
316
317 =item -q
318
319 Don't display the continuous count of packets captured that is normally
320 shown when saving a capture to a file; instead, just display, at the end
321 of the capture, a count of packets captured.  On systems that support
322 the SIGINFO signal, such as various BSDs, typing your "status" character
323 (typically control-T) will cause the current count to be displayed.
324
325 =item -r
326
327 Read packet data from I<infile>.
328
329 =item -R
330
331 Cause the specified filter (which uses the syntax of read filters,
332 rather than that of capture filters) to be applied before printing a
333 decoded form of packets or writing packets to a file; packets not
334 matching the filter are discarded rather than being printed or written.
335
336 =item -s
337
338 Set the default snapshot length to use when capturing live data. 
339 No more than I<snaplen> bytes of each network packet will be read into
340 memory, or saved to disk.
341
342 =item -S
343
344 Decode and display packets even while writing to file.
345
346 =item -t
347
348 Set the format of the packet timestamp printed in summary lines.  The
349 format can be one of 'r' (relative), 'a' (absolute), 'ad' (absolute with
350 date), or 'd' (delta).  The relative time is the time elapsed between
351 the first packet and the current packet.  The absolute time is the
352 actual time the packet was captured, with no date displayed; the
353 absolute date and time is the actual time and date the packet was
354 captured.  The delta time is the time since the previous packet was
355 captured.  The default is relative.
356
357 =item -v
358
359 Print the version and exit.
360
361 =item -V
362
363 Cause B<Tethereal> to print a protocol tree for each packet rather than
364 a one-line summary of the packet.
365
366 =item -w
367
368 Write packet data to I<savefile> or to the standard output if
369 I<savefile> is "-".
370
371 =item -x
372
373 Cause B<Tethereal> to print a hex and ASCII dump of the packet data
374 after printing the summary or protocol tree.
375
376 =item -y
377
378 Set the data link type to use while capturing packets.  The values
379 reported by B<-L> are the values that can be used.
380
381 =item -z
382
383 Get B<Tethereal> to collect various types of statistics and display the result
384 after finishing reading the capture file.
385 Currently implemented statistics are:
386
387 B<-z> dcerpc,rtt,I<uuid>,I<major>.I<minor>[,I<filter>]
388
389 Collect call/reply RTT data for DCERPC interface I<uuid>, 
390 version I<major>.I<minor>.
391 Data collected is number of calls for each procedure, MinRTT, MaxRTT 
392 and AvgRTT. 
393 Example: use B<-z dcerpc,rtt,12345778-1234-abcd-ef00-0123456789ac,1.0> to collect data for CIFS SAMR Interface.  
394 This option can be used multiple times on the command line. 
395
396 If the optional filterstring is provided, the stats will only be calculated
397 on those calls that match that filter.
398 Example: use B<-z dcerpc,rtt,12345778-1234-abcd-ef00-0123456789ac,1.0,ip.addr==1.2.3.4> to collect SAMR
399 RTT statistics for a specific host.
400
401
402 B<-z> io,phs[,I<filter>]
403
404 Create Protocol Hierarchy Statistics listing both number of frames and bytes.
405 If no I<filter> is specified the statistics will be calculated for all frames.
406 If a I<filters> is specified statistics will be only calculated for those
407 packets that match the filter.
408
409 This option can be used multiple times on the command line. 
410
411
412 B<-z> io,stat,I<interval>[,I<filter>][,I<filter>][,I<filter>]...
413
414 Collect frame/bytes statistics for the capture in intervals of I<interval> 
415 seconds. I<Intervals> can be specified either as whole or fractional seconds.
416 Interval can be specified in ms resolution.
417
418 If no I<filter> is specified the statistics will be calculated for all frames.
419 If one or more I<filters> are specified statistics will be calculated for
420 all filters and presented with one column of statistics for each filter.
421
422 This option can be used multiple times on the command line. 
423
424
425 Example: B<-z io,stat,1,ip.addr==1.2.3.4> to generate 1 second
426 statistics for all traffic to/from host 1.2.3.4.
427
428 Example: B<-z "io,stat,0.001,smb&&ip.addr==1.2.3.4"> to generate 1ms
429 statistics for all SMB frames to/from host 1.2.3.4.
430
431 The examples above all use the standard syntax for generating statistics
432 which only calculates the number of frames and bytes in each interval.
433
434
435 io,stat can also do much more statistics and calculate COUNT() SUM() MIN() 
436 MAX() and AVG() using a slightly filter syntax:
437   [COUNT|SUM|MIN|MAX|AVG](<field>)<filter>
438 One important thing to note here is that the field that the calculation is 
439 based on MUST also be part of the filter string or else the calculation will
440 fail.
441
442 So: B<-z io,stat,0.010,AVG(smb.time)> does not work.  Use B<-z
443 io,stat,0.010,AVG(smb.time)smb.time> instead.  Also be aware that a field
444 can exist multiple times inside the same packet and will then be counted
445 multiple times in those packets. 
446
447
448 COUNT(<field>) can be used on any type which has a display filter name. 
449 It will count how many times this particular field is encountered in the
450 filtered packet list.
451
452 Example: B<-z io,stat,0.010,COUNT(smb.sid)smb.sid>
453 This will count the total number of SIDs seen in each 10ms interval.
454
455 SUM(<field>) can only be used on named fields of integer type.
456 This will sum together every occurence of this fields value for each interval.
457
458 Example: B<-z io,stat,0.010,SUM(frame.pkt_len)frame.pkt_len>
459 This will report the total number of bytes seen in all the frames within
460 an interval.
461
462 MIN/MAX/AVG(<field>) can only be used on named fields that are either
463 integers or relative time fields.  This will calculate maximum/minimum
464 or average seen in each interval.  If the field is a relative time field
465 the output will be presented in seconds and three digits after the
466 decimal point.  The resolution for time calculations is 1ms and anything
467 smaller will be truncated.
468
469 Example:  B<-z "io,stat,0.010,smb.time&&ip.addr==1.1.1.1,MIN(smb.time)smb.time&&ip.addr==1.1.1.1,MAX(smb.time)smb.time&&ip.addr==1.1.1.1,MAX(smb.time)smb.time&&ip.addr==1.1.1.1">
470
471 This will calculate statistics for all smb response times we see to/from
472 host 1.1.1.1 in 10ms intervals.  The output will be displayed in 4
473 columns; number of frames/bytes, minimum response time, maximum response
474 time and average response time.
475
476
477
478 B<-z> conv,I<type>[,I<filter>]
479
480 Create a table that lists all conversations that could be seen in the capture.
481 I<type> specifies which type of conversation we want to generate the 
482 statistics for, currently the supported ones are
483   "eth"   Ethernet
484   "fc"    Fibre Channel
485   "fddi"  FDDI
486   "ip"    IP addresses
487   "ipx"   IPX addresses
488   "tcp"   TCP/IP socketpairs   Both IPv4 and IPv6 are supported
489   "tr"    TokenRing
490   "udp"   UDP/IP socketpairs   Both IPv4 and IPv6 are supported
491
492 If the optional filter string is specified, only those packets that match the
493 filter will be used in the calculations.
494
495 The table is presented with one line for each conversation and displays
496 number of frames/bytes in each direction as well as total number of 
497 frames/bytes.
498 The table is sorted according to total number of bytes.
499
500
501 B<-z> proto,colinfo,I<filter>,I<field>
502
503 Append all I<field> values for the packet to the COL_INFO information line.
504 This feature can be used to append arbitrary fields to the COL_INFO line
505 in addition to the normal content of the COL_INFO line.
506 I<field> is the display-filter name of a field which value should be placed
507 on the COL_INFO line.
508 I<filter> is a filter string that controls for which packets the field value
509 will be presented on COL_INFO line. I<field> will only be presented on the
510 COL_INFO line for the packets which match I<filter>.
511
512 NOTE: In order for B<Tethereal> to be able to extract the I<field> value
513 from the packet, I<field> MUST be part of the I<filter> string.  If not,
514 B<Tethereal> will not be able to extract its value.
515
516 For a simple example to add the "nfs.fh.hash" field to COL_INFO for all
517 packets containing the "nfs.fh.hash" field, use
518
519 B<-z proto,colinfo,nfs.fh.hash,nfs.fh.hash>
520
521
522 To put "nfs.fh.hash" on COL_INFO but only for packets coming from host 1.2.3.4
523 use :
524
525 B<-z "proto,colinfo,nfs.fh.hash && ip.src==1.2.3.4,nfs.fh.hash">
526
527 This option can be used multiple times on the command line. 
528
529
530 B<-z> rpc,rtt,I<program>,I<version>[,I<filter>]
531
532 Collect call/reply RTT data for I<program>/I<version>.  Data collected
533 is number of calls for each procedure, MinRTT, MaxRTT and AvgRTT. 
534 Example: use B<-z rpc,rtt,100003,3> to collect data for NFS v3.  This
535 option can be used multiple times on the command line. 
536
537 If the optional filterstring is provided, the stats will only be calculated
538 on those calls that match that filter.
539 Example: use B<-z rpc,rtt,100003,3,nfs.fh.hash==0x12345678> to collect NFS v3
540 RTT statistics for a specific file.
541
542
543 B<-z> rpc,programs
544
545 Collect call/reply RTT data for all known ONC-RPC programs/versions.  
546 Data collected is number of calls for each protocol/version, MinRTT, 
547 MaxRTT and AvgRTT. 
548 This option can only be used once on the command line.
549
550 B<-z> smb,rtt[,I<filter>]
551
552 Collect call/reply RTT data for SMB.  Data collected
553 is number of calls for each SMB command, MinRTT, MaxRTT and AvgRTT. 
554 Example: use B<-z smb,rtt>.
555 The data will be presented as separate tables for all normal SMB commands,
556 all Transaction2 commands and all NT Transaction commands.
557 Only those commands that are seen in the capture will have its stats
558 displayed.
559 Only the first command in a xAndX command chain will be used in the
560 calculation.  So for common SessionSetupAndX + TreeConnectAndX chains,
561 only the SessionSetupAndX call will be used in the statistics.
562 This is a flaw that might be fixed in the future.
563
564 This option can be used multiple times on the command line. 
565
566 If the optional filterstring is provided, the stats will only be calculated
567 on those calls that match that filter.
568 Example: use B<-z "smb,rtt,ip.addr==1.2.3.4"> to only collect stats for
569 SMB packets echanged by the host at IP address 1.2.3.4 .
570
571 B<-z> smb,sids
572
573 When this feature is used B<Tethereal> will print a report with all the
574 discovered SID and account name mappings.  Only those SIDs where the
575 account name is known will be presented in the table.
576
577 For this feature to work you will need to either to enable
578 "Edit/Preferences/Protocols/SMB/Snoop SID to name mappings" in the
579 preferences or you can override the preferences by specifying
580 B<-o "smb.sid_name_snooping:TRUE"> on the B<Tethereal> command line.
581
582 The current methods used by B<Tethereal> to find the SID->name mapping
583 is relatively restricted but is hoped to be expanded in the future.
584
585 B<-z> mgcp,rtd[I<,filter>]
586
587 Collect requests/response RTD (Response Time Delay) data for MGCP. 
588 This is similar to B<-z smb,rtt>). Data collected is number of calls
589 for each known MGCP Type, MinRTD, MaxRTD and AvgRTD.
590 Additionally you get the number of duplicate requests/responses, 
591 unresponded requests, responses ,which don't match with
592 any request. 
593 Example: use B<-z mgcp,rtd>.
594
595 This option can be used multiple times on the command line. 
596
597 If the optional filterstring is provided, the stats will only be calculated
598 on those calls that match that filter.
599 Example: use B<-z "mgcp,rtd,ip.addr==1.2.3.4"> to only collect stats for
600 MGCP packets exchanged by the host at IP address 1.2.3.4 .
601
602 B<-z> h225,counter[I<,filter>]
603
604 Count ITU-T H.225 messages and their reasons. In the first column you get a 
605 list of H.225 messages and H.225 message reasons, which occur in the current
606 capture file. The number of occurences of each message or reason is displayed 
607 in the second column.
608
609 Example: use B<-z h225,counter>.
610
611 This option can be used multiple times on the command line. 
612
613 If the optional filterstring is provided, the stats will only be calculated
614 on those calls that match that filter.
615 Example: use B<-z "h225,counter,ip.addr==1.2.3.4"> to only collect stats for
616 H.225 packets exchanged by the host at IP address 1.2.3.4 .
617
618 =back
619
620 =head1 CAPTURE FILTER SYNTAX
621
622 See manual page of tcpdump(8).
623
624 =head1 READ FILTER SYNTAX
625
626 For a complete table of protocol and protocol fields that are filterable
627 in B<Tethereal> see ethereal-filter(4).
628
629 =head1 FILES
630
631 The F<ethereal.conf> file, which is installed in the F<etc> directory
632 under the main installation directory (for example, F</usr/local/etc>)
633 on UNIX-compatible systems, and in the main installation directory (for
634 example, F<C:\Program Files\Ethereal>) on Windows systems, and the
635 personal preferences file, which is F<$HOME/.ethereal/preferences> on
636 UNIX-compatible systems and F<%APPDATA%\Ethereal\preferences> (or, if
637 %APPDATA% isn't defined,
638 F<%USERPROFILE%\Application Data\Ethereal\preferences>) on
639 Windows systems, contain system-wide and personal preference settings,
640 respectively.  The file contains preference settings of the form
641 I<prefname>B<:>I<value>, one per line, where I<prefname> is the name of
642 the preference (which is the same name that would appear in the
643 preference file), and I<value> is the value to which it should be set;
644 white space is allowed between B<:> and I<value>.  A preference setting
645 can be continued on subsequent lines by indenting the continuation lines
646 with white space.  A B<#> character starts a comment that runs to the
647 end of the line.
648
649 The system-wide preference file is read first, if it exists, overriding
650 B<Tethereal>'s default values; the personal preferences file is then
651 read, if it exists, overriding default values and values read from the
652 system-wide preference file.
653
654 The disabled protocols file, which is F<$HOME/.ethereal/disabled_protos>
655 on UNIX-compatible systems and F<%APPDATA%\Ethereal\disabled_protos>
656 (or, if %APPDATA% isn't defined, F<%USERPROFILE%\Application
657 Data\Ethereal\disabled_protos>) on Windows systems, contain a list of
658 protocols that have been disabled, so that their dissectors are never
659 called.  The file contains protocol names, one per line, where the
660 protocol name is the same name that would be used in a display filter
661 for the protocol.  A B<#> character starts a comment that runs to the
662 end of the line.
663
664 The F<ethers> file, which is found in the F</etc> directory on
665 UNIX-compatible systems, and in the main installation directory (for
666 example, F<C:\Program Files\Ethereal>) on Windows systems, is consulted
667 to correlate 6-byte hardware addresses to names.  If an address is not
668 found in the F<ethers> file, the F<$HOME/.ethereal/ethers> file on
669 UNIX-compatible systems, and the F<%APPDATA%\Ethereal\ethers> file (or, if
670 %APPDATA% isn't defined, the
671 F<%USERPROFILE%\Application Data\Ethereal\ethers> file) on Windows
672 systems is consulted next.  Each line contains one hardware
673 address and name, separated by whitespace.  The digits of the hardware
674 address are separated by either a colon (:), a dash (-), or a period
675 (.).  The following three lines are valid lines of an ethers file:
676
677   ff:ff:ff:ff:ff:ff          Broadcast
678   c0-00-ff-ff-ff-ff          TR_broadcast
679   00.00.00.00.00.00          Zero_broadcast
680
681 The F<manuf> file, which is installed in the F<etc> directory under the
682 main installation directory (for example, F</usr/local/etc>) on
683 UNIX-compatible systems, and in the main installation directory (for
684 example, F<C:\Program Files\Ethereal>) on Windows systems, matches the
685 3-byte vendor portion of a 6-byte hardware address with the
686 manufacturer's name; it can also contain well-known MAC addresses and
687 address ranges specified with a netmask.  The format of the file is the
688 same as the F<ethers> file, except that entries of the form
689
690   00:00:0C      Cisco
691
692 can be provided, with the 3-byte OUI and the name for a vendor, and
693 entries of the form
694
695   00-00-0C-07-AC/40     All-HSRP-routers
696
697 can be specified, with a MAC address and a mask indicating how many bits
698 of the address must match.  Trailing zero bytes can be omitted from
699 address ranges.  That entry, for example, will match addresses from
700 00-00-0C-07-AC-00 through 00-00-0C-07-AC-FF.  The mask need not be a
701 multiple of 8.
702
703 The F<ipxnets> file, which is found in the F</etc> directory on
704 UNIX-compatible systems, and in the main installation directory (for
705 example, F<C:\Program Files\Ethereal>) on Windows systems, correlates
706 4-byte IPX network numbers to names.  If a network number is not found
707 in the F<ipxnets> file, the F<$HOME/.ethereal/ipxnets> file on
708 UNIX-compatible systems, and the F<%APPDATA%\Ethereal\ipxnets> file (or,
709 if %APPDATA% isn't defined, the
710 F<%USERPROFILE%\Application Data\Ethereal\ipxnets> file)
711 on Windows systems, is consulted next.  The format is the same as the
712 F<ethers> file, except that each address if four bytes instead of six. 
713 Additionally, the address can be represented a single hexadecimal
714 number, as is more common in the IPX world, rather than four hex octets. 
715 For example, these four lines are valid lines of an ipxnets file.
716
717   C0.A8.2C.00              HR
718   c0-a8-1c-00              CEO
719   00:00:BE:EF              IT_Server1
720   110f                     FileServer3
721
722 =head1 SEE ALSO
723
724 I<ethereal-filter(4)> I<ethereal(1)>, I<editcap(1)>, I<tcpdump(8)>, I<pcap(3)>
725
726 =head1 NOTES
727
728 B<Tethereal> is part of the B<Ethereal> distribution.  The latest version
729 of B<Ethereal> can be found at B<http://www.ethereal.com>.
730
731 =head1 AUTHORS
732
733 B<Tethereal> uses the same packet dissection code that B<Ethereal> does,
734 as well as using many other modules from B<Ethereal>; see the list of
735 authors in the B<Ethereal> man page for a list of authors of that code.