New tap extension for tethereal : ProtocolHierarchyStatistics.
[obnox/wireshark/wip.git] / doc / tethereal.pod.template
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 ]>
11 S<[ B<-c> count ]>
12 S<[ B<-D> ]>
13 S<[ B<-f> capture filter expression ]>
14 S<[ B<-F> file format ]>
15 S<[ B<-h> ]>
16 S<[ B<-i> interface ]> 
17 S<[ B<-l> ]>
18 S<[ B<-n> ]>
19 S<[ B<-N> resolving flags ]>
20 S<[ B<-o> preference setting ] ...>
21 S<[ B<-p> ]>
22 S<[ B<-q> ]>
23 S<[ B<-r> infile ]>
24 S<[ B<-R> display filter expression ]>
25 S<[ B<-s> snaplen ]>
26 S<[ B<-S> ]>
27 S<[ B<-t> time stamp format ]>
28 S<[ B<-v> ]>
29 S<[ B<-V> ]>
30 S<[ B<-w> savefile ]>
31 S<[ B<-x> ]>
32 S<[ B<-z> statistics-string ]>
33 S<[ filter expression ]>
34
35 =head1 DESCRIPTION
36
37 B<Tethereal> is a network protocol analyzer.  It lets you capture packet
38 data from a live network, or read packets from a previously saved
39 capture file, either printing a decoded form of those packets to the
40 standard output or writing the packets to a file.  B<Tethereal>'s native
41 capture file format is B<libpcap> format, which is also the format used
42 by B<tcpdump> and various other tools.  In addition, B<Tethereal> can
43 read capture files from B<snoop> and B<atmsnoop>, Shomiti/Finisar
44 B<Surveyor>, Novell B<LANalyzer>, Network General/Network Associates
45 DOS-based B<Sniffer> (compressed or uncompressed), Microsoft B<Network
46 Monitor>, AIX's B<iptrace>, Cinco Networks B<NetXRay>, Network
47 Associates Windows-based B<Sniffer>, AG Group/WildPackets
48 B<EtherPeek>/B<TokenPeek>/B<AiroPeek>, B<RADCOM>'s WAN/LAN analyzer,
49 B<Lucent/Ascend> router debug output, HP-UX's B<nettl>, the dump output
50 from B<Toshiba's> ISDN routers, the output from B<i4btrace> from the
51 ISDN4BSD project, the output in B<IPLog> format from the Cisco Secure
52 Intrusion Detection System, B<pppd logs> (pppdump format), the output
53 from VMS's B<TCPIPtrace> utility, the text output from the B<DBS
54 Etherwatch> VMS utility, traffic capture files from Visual Networks'
55 Visual UpTime, and the output from B<CoSine> L2 debug.  There is no 
56 need to tell B<Tethereal> what type of file you are reading; it will 
57 determine the file type by itself. B<Tethereal> is also capable of 
58 reading any of these file formats if they are compressed using gzip.  
59 B<Tethereal> recognizes this directly from the file; the '.gz' extension 
60 is not required for this purpose.
61
62 If the B<-w> flag is not specified, B<Tethereal> prints a decoded form
63 of the packets it captures or reads; otherwise, it writes those packets
64 to the file specified by that flag.
65
66 When printing a decoded form of packets, B<Tethereal> prints, by
67 default, a summary line containing the fields specified by the
68 preferences file (which are also the fields displayed in the packet list
69 pane in B<Ethereal>), although if it's printing packets as it captures
70 them, rather than printing packets from a saved capture file, it won't
71 print the "frame number" field.  If the B<-V> flag is specified, it
72 prints intead a protocol tree, showing all the fields of all protocols
73 in the packet.
74
75 When writing packets to a file, B<Tethereal>, by default, writes the
76 file in B<libpcap> format, and writes all of the packets it sees to the
77 output file.  The B<-F> flag can be used to specify the format in which
78 to write the file; it can write the file in B<libpcap> format (standard
79 B<libpcap> format, a modified format used by some patched versions of
80 B<libpcap>, or the format used by Red Hat Linux 6.1), B<snoop> format,
81 uncompressed B<Sniffer> format, Microsoft B<Network Monitor> 1.x format,
82 the format used by Windows-based versions of the B<Sniffer>
83 software, and the format used by Visual Networks' software.
84
85 Read filters in B<Tethereal>, which allow you to select which packets
86 are to be decoded or written to a file, are very powerful; more fields
87 are filterable in B<Tethereal> than in other protocol analyzers, and the
88 syntax you can use to create your filters is richer.  As B<Tethereal>
89 progresses, expect more and more protocol fields to be allowed in read
90 filters.
91
92 Packet capturing is performed with the pcap library.  The capture filter
93 syntax follows the rules of the pcap library.  This syntax is different
94 from the read filter syntax.  A read filter can also be specified when
95 capturing, and only packets that pass the read filter will be displayed
96 or saved to the output file; note, however, that capture filters are much
97 more efficient than read filters, and it may be more difficult for
98 B<Tethereal> to keep up with a busy network if a read filter is
99 specified for a live capture.
100
101 Compressed file support uses (and therefore requires) the zlib library. 
102 If the zlib library is not present, B<Tethereal> will compile, but will
103 be unable to read compressed files.
104
105 A capture or read filter can either be specified with the B<-f> or B<-R>
106 option, respectively, in which case the entire filter expression must be
107 specified as a single argument (which means that if it contains spaces,
108 it must be quoted), or can be specified with command-line arguments
109 after the option arguments, in which case all the arguments after the
110 filter arguments are treated as a filter expression.  If the filter is
111 specified with command-line arguments after the option arguments, it's a
112 capture filter if a capture is being done (i.e., if no B<-r> flag was
113 specified) and a read filter if a capture file is being read (i.e., if a
114 B<-r> flag was specified).
115
116 =head1 OPTIONS
117
118 =over 4
119
120 =item -a
121
122 Specify a criterion that specifies when B<Tethereal> is to stop writing
123 to a capture file.  The criterion is of the form I<test>B<:>I<value>,
124 where I<test> is one of:
125
126 =for man .RS
127
128 =for html <P><DL>
129
130 =item duration
131
132 Stop writing to a capture file after I<value> seconds have elapsed.
133
134 =item filesize
135
136 Stop writing to a capture file after it reaches a size of I<value>
137 kilobytes (where a kilobyte is 1000 bytes, not 1024 bytes).
138
139 =for man .RE
140
141 =for html </DL>
142
143 =item -b
144
145 If a maximum capture file size was specified, cause B<Tethereal> to run
146 in "ring buffer" mode, with the specified number of files.  In "ring
147 buffer" mode, B<Tethereal> will write to several capture files; the name
148 of the first file, while the capture is in progress, will be the name
149 specified by the B<-w> flag, and subsequent files with have .I<n>
150 appended, with I<n> counting up.
151
152 When the first capture file fills up, B<Tethereal> will switch to
153 writing to the next file, until it fills up the last file, at which
154 point it'll discard the data in the first file and start writing to that
155 file.  When that file fills up, B<Tethereal> will discard the data in
156 the next file and start writing to it, and so on.
157
158 When the capture completes, the files will be renamed to have names
159 based on the number of the file and on the date and time at which
160 packets most recently started being written to the file.
161
162 You can only save files in B<libpcap> format when using a ring buffer.
163
164 =item -c
165
166 Set the default number of packets to read when capturing live
167 data.
168
169 =item -D
170
171 Print a list of the interfaces on which B<Tethereal> can capture, and
172 exit.  Note that "can capture" means that B<Tethereal> was able to open
173 that device to do a live capture; if, on your system, a program doing a
174 network capture must be run from an account with special privileges (for
175 example, as root), then, if B<Tethereal> is run with the B<-D> flag and
176 is not run from such an account, it will not list any interfaces.
177
178 =item -f
179
180 Set the capture filter expression.
181
182 =item -F
183
184 Set the file format of the output capture file.
185
186 =item -h
187
188 Print the version and options and exits.
189
190 =item -i
191
192 Set the name of the network interface to use for live packet capture. 
193 It should match one of the names listed in "B<netstat -i>" or
194 "B<ifconfig -a>".  If no interface is specified, B<Tethereal> searches
195 the list of interfaces, choosing the first non-loopback interface if
196 there are any non-loopback interfaces, and choosing the first loopback
197 interface if there are no non-loopback interfaces; if there are no
198 interfaces, B<Tethereal> reports an error and doesn't start the capture.
199
200 =item -l
201
202 Flush the standard output after the information for each packet is
203 printed.  (This is not, strictly speaking, line-buffered if B<-V>
204 was specified; however, it is the same as line-buffered if B<-V> wasn't
205 specified, as only one line is printed for each packet, and, as B<-l> is
206 normally used when piping a live capture to a program or script, so that
207 output for a packet shows up as soon as the packet is seen and
208 dissected, it should work just as well as true line-buffering.  We do
209 this as a workaround for a deficiency in the Microsoft Visual C++ C
210 library.)
211
212 This may be useful when piping the output of B<Tethereal> to another
213 program, as it means that the program to which the output is piped will
214 see the dissected data for a packet as soon as B<Tethereal> sees the
215 packet and generates that output, rather than seeing it only when the
216 standard output buffer containing that data fills up.
217
218 =item -n
219
220 Disable network object name resolution (such as hostname, TCP and UDP port
221 names).
222
223 =item -N
224
225 Turn on name resolving for particular types of addresses and port
226 numbers, with name resolving for other types of addresses and port
227 numbers turned off; the argument is a string that may contain the
228 letters B<m> to enable MAC address resolution, B<n> to enable network
229 address resolution, and B<t> to enable transport-layer port number
230 resolution.  This overrides B<-n> if both B<-N> and B<-n> are present.
231
232 =item -o
233
234 Set a preference value, overriding the default value and any value read
235 from a preference file.  The argument to the flag is a string of the
236 form I<prefname>B<:>I<value>, where I<prefname> is the name of the
237 preference (which is the same name that would appear in the preference
238 file), and I<value> is the value to which it should be set.
239
240 =item -p
241
242 I<Don't> put the interface into promiscuous mode.  Note that the
243 interface might be in promiscuous mode for some other reason; hence,
244 B<-p> cannot be used to ensure that the only traffic that is captured is
245 traffic sent to or from the machine on which B<Tethereal> is running,
246 broadcast traffic, and multicast traffic to addresses received by that
247 machine.
248
249 =item -q
250
251 Don't display the continuous count of packets captured that is normally
252 shown when saving a capture to a file; instead, just display, at the end
253 of the capture, a count of packets captured.
254
255 =item -r
256
257 Read packet data from I<infile>.
258
259 =item -R
260
261 Cause the specified filter (which uses the syntax of read filters,
262 rather than that of capture filters) to be applied before printing a
263 decoded form of packets or writing packets to a file; packets not
264 matching the filter are discarded rather than being printed or written.
265
266 =item -s
267
268 Set the default snapshot length to use when capturing live data. 
269 No more than I<snaplen> bytes of each network packet will be read into
270 memory, or saved to disk.
271
272 =item -S
273
274 Decode and display packets even while writing to file.
275
276 =item -t
277
278 Set the format of the packet timestamp printed in summary lines.  The
279 format can be one of 'r' (relative), 'a' (absolute), 'ad' (absolute with
280 date), or 'd' (delta).  The relative time is the time elapsed between
281 the first packet and the current packet.  The absolute time is the
282 actual time the packet was captured, with no date displayed; the
283 absolute date and time is the actual time and date the packet was
284 captured.  The delta time is the time since the previous packet was
285 captured.  The default is relative.
286
287 =item -v
288
289 Print the version and exit.
290
291 =item -V
292
293 Cause B<Tethereal> to print a protocol tree for each packet rather than
294 a one-line summary of the packet.
295
296 =item -w
297
298 Write packet data to I<savefile> or to the standard output if
299 I<savefile> is "-".
300
301 =item -x
302
303 Cause B<Tethereal> to print a hex and ASCII dump of the packet data
304 after printing the summary or protocol tree.
305
306 =item -z
307
308 Get B<Tethereal> to collect various types of statistics and display the result
309 after finishing reading the capture file.
310 Currently implemented statistics are:
311
312 B<-z> dcerpc,rtt,I<uuid>,I<major>.I<minor>[,I<filter>]
313
314 Collect call/reply RTT data for DCERPC interface I<uuid>, 
315 version I<major>.I<minor>.
316 Data collected is number of calls for each procedure, MinRTT, MaxRTT 
317 and AvgRTT. 
318 Example: use B<-z dcerpc,rtt,12345778-1234-abcd-ef00-0123456789ac,1.0> to collect data for CIFS SAMR Interface.  
319 This option can be used multiple times on the command line. 
320
321 If the optional filterstring is provided, the stats will only be calculated
322 on those calls that match that filter.
323 Example: use B<-z dcerpc,rtt,12345778-1234-abcd-ef00-0123456789ac,1.0,ip.addr==1.2.3.4> to collect SAMR
324 RTT statistics for a specific host.
325
326
327 B<-z> io,phs[,I<filter>]
328
329 Create Protocol Hierarchy Statistics listing both number of frames and bytes.
330 If no I<filter> is specified the statistics will be calculated for all frames.
331 If a I<filters> is specified statistics will be only calculated for those
332 packets that match the filter.
333
334 This option can be used multiple times on the command line. 
335
336
337 B<-z> io,stat,I<interval>[,I<filter>][,I<filter>][,I<filter>]...
338
339 Collect frame/bytes statistics for the capture in intervals of I<interval> 
340 seconds.
341 If no I<filter> is specified the statistics will be calculated for all frames.
342 If one or more I<filters> are specified statistics will be calculated for
343 all filters and presented with one column of statistics for each filter.
344
345 This option can be used multiple times on the command line. 
346
347  
348 B<-z> rpc,rtt,I<program>,I<version>[,I<filter>]
349
350 Collect call/reply RTT data for I<program>/I<version>.  Data collected
351 is number of calls for each procedure, MinRTT, MaxRTT and AvgRTT. 
352 Example: use B<-z rpc,rtt,100003,3> to collect data for NFS v3.  This
353 option can be used multiple times on the command line. 
354
355 If the optional filterstring is provided, the stats will only be calculated
356 on those calls that match that filter.
357 Example: use B<-z rpc,rtt,100003,3,nfs.fh.hash==0x12345678> to collect NFS v3
358 RTT statistics for a specific file.
359
360
361 B<-z> rpc,programs
362
363 Collect call/reply RTT data for all known ONC-RPC programs/versions.  
364 Data collected is number of calls for each protocol/version, MinRTT, 
365 MaxRTT and AvgRTT. 
366 This option can only be used once on the command line.
367
368
369 =back
370
371 =head1 CAPTURE FILTER SYNTAX
372
373 See manual page of tcpdump(8).
374
375 =head1 READ FILTER SYNTAX
376
377 Read filters help you remove the noise from a packet trace and let you
378 see only the packets that interest you.  If a packet meets the
379 requirements expressed in your read filter, then it is printed.  Read
380 filters let you compare the fields within a protocol against a specific
381 value, compare fields against fields, and to check the existence of
382 specified fields or protocols.
383
384 The simplest read filter allows you to check for the existence of a
385 protocol or field.  If you want to see all packets which contain the IPX
386 protocol, the filter would be "ipx".  (Without the quotation marks) To
387 see all packets that contain a Token-Ring RIF field, use "tr.rif".
388
389 Fields can also be compared against values.  The comparison operators
390 can be expressed either through C-like symbols, or through English-like
391 abbreviations:
392
393     eq, ==    Equal
394     ne, !=    Not equal
395     gt, >     Greater than
396     lt, <     Less Than
397     ge, >=    Greater than or Equal to
398     le, <=    Less than or Equal to
399
400 Furthermore, each protocol field is typed. The types are:
401
402     Unsigned integer (either 8-bit, 16-bit, 24-bit, or 32-bit)
403     Signed integer (either 8-bit, 16-bit, 24-bit, or 32-bit)
404     Boolean
405     Ethernet address (6 bytes)
406     Byte string (n-number of bytes)
407     IPv4 address
408     IPv6 address
409     IPX network number
410     String (text)
411     Double-precision floating point number
412
413 An integer may be expressed in decimal, octal, or hexadecimal notation. 
414 The following three read filters are equivalent:
415
416     frame.pkt_len > 10
417     frame.pkt_len > 012
418     frame.pkt_len > 0xa
419
420 Boolean values are either true or false.  In a read filter expression
421 testing the value of a Boolean field, "true" is expressed as 1 or any
422 other non-zero value, and "false" is expressed as zero.  For example, a
423 token-ring packet's source route field is boolean.  To find any
424 source-routed packets, a read filter would be:
425
426     tr.sr == 1
427
428 Non source-routed packets can be found with:
429
430     tr.sr == 0
431
432 Ethernet addresses, as well as a string of bytes, are represented in hex
433 digits.  The hex digits may be separated by colons, periods, or hyphens:
434
435     fddi.dst eq ff:ff:ff:ff:ff:ff
436     ipx.srcnode == 0.0.0.0.0.1
437     eth.src == aa-aa-aa-aa-aa-aa
438
439 If a string of bytes contains only one byte, then it is represented as
440 an unsigned integer.  That is, if you are testing for hex value 'ff' in
441 a one-byte byte-string, you must compare it agains '0xff' and not 'ff'. 
442
443 IPv4 addresses can be represented in either dotted decimal notation, or
444 by using the hostname:
445
446     ip.dst eq www.mit.edu
447     ip.src == 192.168.1.1
448
449 IPv4 addresses can be compared with the same logical relations as numbers:
450 eq, ne, gt, ge, lt, and le.  The IPv4 address is stored in host order,
451 so you do not have to worry about how the endianness of an IPv4 address
452 when using it in a read filter.
453
454 Classless InterDomain Routing (CIDR) notation can be used to test if an
455 IPv4 address is in a certain subnet.  For example, this display filter
456 will find all packets in the 129.111 Class-B network:
457
458     ip.addr == 129.111.0.0/16
459
460 Remember, the number after the slash represents the number of bits used
461 to represent the network.  CIDR notation can also be used with
462 hostnames, in this example of finding IP addresses on the same Class C
463 network as 'sneezy':
464
465     ip.addr eq sneezy/24
466
467 The CIDR notation can only be used on IP addresses or hostnames, not in
468 variable names.  So, a display filter like "ip.src/24 == ip.dst/24" is
469 not valid.  (yet)
470
471 IPX networks are represented by unsigned 32-bit integers.  Most likely
472 you will be using hexadecimal when testing for IPX network values:
473
474     ipx.srcnet == 0xc0a82c00
475
476 A slice operator also exists.  You can check the substring
477 (byte-string) of any protocol or field.  For example, you can filter on
478 the vendor portion of an ethernet address (the first three bytes) like
479 this:
480
481     eth.src[0:3] == 00:00:83
482
483 If the length of your byte-slice is only one byte, then it is still
484 represented in hex, but without the preceding "0x": 
485
486     llc[3] == aa
487
488 You can use the slice operator on a protocol name, too.  And
489 remember, the "frame" protocol encompasses the entire packet, allowing
490 you to look at the nth byte of a packet regardless of its frame type
491 (Ethernet, token-ring, etc.).
492
493     token[0:5] ne 0.0.0.1.1
494     ipx[0:2] == ff:ff
495     llc[3:1] eq 0xaa
496
497 The following syntax governs slices:
498
499         [i:j]   i = start_offset, j = length
500         [i-j]   i = start_offet, j = end_offset, inclusive.
501         [i]     i = start_offset, length = 1
502         [:j]    start_offset = 0, length = j
503         [i:]    start_offset = i, end_offset = end_of_field
504
505 Offsets and lengths can be negative, in which case they indicate the
506 offset from the B<end> of the field.  Here's how to check the last 4
507 bytes of a frame:
508
509     frame[-4:4] == 0.1.2.3
510
511 or
512
513     frame[-4:] == 0.1.2.3
514
515 You can create complex concatenations of slices using the comma operator:
516
517         field[1,3-5,9:] == 01:03:04:05:09:0a:0b
518
519 All the above tests can be combined together with logical expressions. 
520 These too are expressable in C-like syntax or with English-like
521 abbreviations:
522
523     and, &&   Logical AND
524     or, ||    Logical OR
525     not, !    Logical NOT
526
527 Expressions can be grouped by parentheses as well.  The following are
528 all valid read filter expression:
529
530     tcp.port == 80 and ip.src == 192.168.2.1
531     not llc
532     (ipx.srcnet == 0xbad && ipx.srnode == 0.0.0.0.0.1) || ip
533     tr.dst[0:3] == 0.6.29 xor tr.src[0:3] == 0.6.29
534
535 A special caveat must be given regarding fields that occur more than
536 once per packet.  "ip.addr" occurs twice per IP packet, once for the
537 source address, and once for the destination address.  Likewise,
538 tr.rif.ring fields can occur more than once per packet.  The following
539 two expressions are not equivalent:
540
541         ip.addr ne 192.168.4.1
542     not ip.addr eq 192.168.4.1
543
544 The first filter says "show me IP packets where an ip.addr exists that
545 does not equal 192.168.4.1".  That is, as long as one ip.addr in the
546 packet does not equal 192.168.44.1, the packet passes the read
547 filter.  The second filter "don't show me any packets that have at least
548 one ip.addr field equal to 192.168.4.1".  If one ip.addr is 192.168.4.1,
549 the packet does not pass.  If B<neither> ip.addr fields is 192.168.4.1,
550 then the packet passes.
551
552 It is easy to think of the 'ne' and 'eq' operators as having an implict
553 "exists" modifier when dealing with multiply-recurring fields.  "ip.addr
554 ne 192.168.4.1" can be thought of as "there exists an ip.addr that does
555 not equal 192.168.4.1".
556
557 Be careful with multiply-recurring fields; they can be confusing.
558
559 Care must also be taken when using the read filter to remove noise
560 from the packet trace. If you want to e.g. filter out all IP multicast
561 packets to address 224.1.2.3, then using:
562
563     ip.dst ne 224.1.2.3
564
565 may be too restrictive. Filtering with "ip.dst" selects only those
566 B<IP> packets that satisfy the rule. Any other packets, including all
567 non-IP packets, will not printed. For printing also the non-IP
568 packets, you can use one of the following two expressions:
569
570     not ip or ip.dst ne 224.1.2.3
571     not ip.addr eq 224.1.2.3
572
573 The first filter uses "not ip" to include all non-IP packets and then
574 lets "ip.dst ne 224.1.2.3" to filter out the unwanted IP packets. The
575 second filter has already been explained above where filtering with
576 multiply occuring fields was discussed.
577
578 The following is a table of protocol and protocol fields that are
579 filterable in B<Tethereal>.  The abbreviation of the protocol or field is
580 given.  This abbreviation is what you use in the read filter.  The
581 type of the field is also given.
582
583 =insert_dfilter_table
584
585 =head1 FILES
586
587 The F<ethereal.conf> file, which is installed in the F<etc> directory
588 under the main installation directory (for example, F</usr/local/etc>)
589 on UNIX-compatible systems, and in the main installation directory (for
590 example, F<C:\Program Files\Ethereal>) on Windows systems, and the
591 personal preferences file, which is F<$HOME/.ethereal/preferences> on
592 UNIX-compatible systems and F<%APPDATA%\Ethereal\preferences> (or, if
593 %APPDATA% isn't defined,
594 F<%USERPROFILE%\Application Data\Ethereal\preferences>) on
595 Windows systems, contain system-wide and personal preference settings,
596 respectively.  The file contains preference settings of the form
597 I<prefname>B<:>I<value>, one per line, where I<prefname> is the name of
598 the preference (which is the same name that would appear in the
599 preference file), and I<value> is the value to which it should be set;
600 white space is allowed between B<:> and I<value>.  A preference setting
601 can be continued on subsequent lines by indenting the continuation lines
602 with white space.  A B<#> character starts a comment that runs to the
603 end of the line.
604
605 The system-wide preference file is read first, if it exists, overriding
606 B<Tethereal>'s default values; the personal preferences file is then
607 read, if it exists, overriding default values and values read from the
608 system-wide preference file.
609
610 The F<ethers> file, which is found in the F</etc> directory on
611 UNIX-compatible systems, and in the main installation directory (for
612 example, F<C:\Program Files\Ethereal>) on Windows systems, is consulted
613 to correlate 6-byte hardware addresses to names.  If an address is not
614 found in the F<ethers> file, the F<$HOME/.ethereal/ethers> file on
615 UNIX-compatible systems, and the F<%APPDATA%\Ethereal\ethers> file (or, if
616 %APPDATA% isn't defined, the
617 F<%USERPROFILE%\Application Data\Ethereal\ethers> file) on Windows
618 systems is consulted next.  Each line contains one hardware
619 address and name, separated by whitespace.  The digits of the hardware
620 address are separated by either a colon (:), a dash (-), or a period
621 (.).  The following three lines are valid lines of an ethers file:
622
623   ff:ff:ff:ff:ff:ff          Broadcast
624   c0-00-ff-ff-ff-ff          TR_broadcast
625   00.00.00.00.00.00          Zero_broadcast
626
627 The F<manuf> file, which is installed in the F<etc> directory under the
628 main installation directory (for example, F</usr/local/etc>) on
629 UNIX-compatible systems, and in the main installation directory (for
630 example, F<C:\Program Files\Ethereal>) on Windows systems, matches the
631 3-byte vendor portion of a 6-byte hardware address with the
632 manufacturer's name; it can also contain well-known MAC addresses and
633 address ranges specified with a netmask.  The format of the file is the
634 same as the F<ethers> file, except that entries of the form
635
636   00:00:0C      Cisco
637
638 can be provided, with the 3-byte OUI and the name for a vendor, and
639 entries of the form
640
641   00-00-0C-07-AC/40     All-HSRP-routers
642
643 can be specified, with a MAC address and a mask indicating how many bits
644 of the address must match.  Trailing zero bytes can be omitted from
645 address ranges.  That entry, for example, will match addresses from
646 00-00-0C-07-AC-00 through 00-00-0C-07-AC-FF.  The mask need not be a
647 multiple of 8.
648
649 The F<ipxnets> file, which is found in the F</etc> directory on
650 UNIX-compatible systems, and in the main installation directory (for
651 example, F<C:\Program Files\Ethereal>) on Windows systems, correlates
652 4-byte IPX network numbers to names.  If a network number is not found
653 in the F<ipxnets> file, the F<$HOME/.ethereal/ipxnets> file on
654 UNIX-compatible systems, and the F<%APPDATA%\Ethereal\ipxnets> file (or,
655 if %APPDATA% isn't defined, the
656 F<%USERPROFILE%\Application Data\Ethereal\ipxnets> file)
657 on Windows systems, is consulted next.  The format is the same as the
658 F<ethers> file, except that each address if four bytes instead of six. 
659 Additionally, the address can be represented a single hexadecimal
660 number, as is more common in the IPX world, rather than four hex octets. 
661 For example, these four lines are valid lines of an ipxnets file.
662
663   C0.A8.2C.00              HR
664   c0-a8-1c-00              CEO
665   00:00:BE:EF              IT_Server1
666   110f                     FileServer3
667
668 =head1 SEE ALSO
669
670 I<ethereal(1)>, I<editcap(1)>, I<tcpdump(8)>, I<pcap(3)>
671
672 =head1 NOTES
673
674 B<Tethereal> is part of the B<Ethereal> distribution.  The latest version
675 of B<Ethereal> can be found at B<http://www.ethereal.com>.
676
677 =head1 AUTHORS
678
679 B<Tethereal> uses the same packet dissection code that B<Ethereal> does,
680 as well as using many other modules from B<Ethereal>; see the list of
681 authors in the B<Ethereal> man page for a list of authors of that code.