2021-10-19 23:26:37 +00:00
|
|
|
include::../docbook/attributes.adoc[]
|
2021-06-18 10:20:51 +00:00
|
|
|
= rawshark(1)
|
|
|
|
:doctype: manpage
|
|
|
|
:stylesheet: ws.css
|
|
|
|
:linkcss:
|
|
|
|
:copycss: ../docbook/{stylesheet}
|
2018-08-17 18:34:57 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== NAME
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2013-07-28 21:12:07 +00:00
|
|
|
rawshark - Dump and analyze raw pcap data
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== SYNOPSIS
|
|
|
|
|
|
|
|
[manarg]
|
|
|
|
*rawshark*
|
|
|
|
[ *-d* <encap:linktype>|<proto:protoname> ]
|
|
|
|
[ *-F* <field to display> ]
|
|
|
|
[ *-h* ]
|
|
|
|
[ *-l* ]
|
|
|
|
[ *-m* <bytes> ]
|
|
|
|
[ *-n* ]
|
|
|
|
[ *-N* <name resolving flags> ]
|
|
|
|
[ *-o* <preference setting> ] ...
|
|
|
|
[ *-p* ]
|
|
|
|
[ *-r* <pipe>|- ]
|
|
|
|
[ *-R* <read (display) filter> ]
|
|
|
|
[ *-s* ]
|
|
|
|
[ *-S* <field format> ]
|
|
|
|
[ *-t* a|ad|adoy|d|dd|e|r|u|ud|udoy ]
|
|
|
|
[ *-v* ]
|
|
|
|
|
|
|
|
== DESCRIPTION
|
|
|
|
|
|
|
|
*Rawshark* reads a stream of packets from a file or pipe, and prints a line
|
2008-02-15 23:20:32 +00:00
|
|
|
describing its output, followed by a set of matching fields for each packet
|
|
|
|
on stdout.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== INPUT
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Unlike *TShark*, *Rawshark* makes no assumptions about encapsulation or
|
|
|
|
input. The *-d* and *-r* flags must be specified in order for it to run.
|
|
|
|
One or more *-F* flags should be specified in order for the output to be
|
2008-02-15 23:20:32 +00:00
|
|
|
useful. The other flags listed above follow the same conventions as
|
2021-06-18 10:20:51 +00:00
|
|
|
*Wireshark* and *TShark*.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*Rawshark* expects input records with the following format by default. This
|
2013-07-28 21:12:07 +00:00
|
|
|
matches the format of the packet header and packet data in a pcap-formatted
|
2010-10-15 16:05:06 +00:00
|
|
|
file on disk.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2008-03-07 23:44:40 +00:00
|
|
|
struct rawshark_rec_s {
|
2009-03-31 23:38:31 +00:00
|
|
|
uint32_t ts_sec; /* Time stamp (seconds) */
|
|
|
|
uint32_t ts_usec; /* Time stamp (microseconds) */
|
2008-03-07 23:44:40 +00:00
|
|
|
uint32_t caplen; /* Length of the packet buffer */
|
|
|
|
uint32_t len; /* "On the wire" length of the packet */
|
2009-04-01 20:52:53 +00:00
|
|
|
uint8_t data[caplen]; /* Packet data */
|
2008-03-07 23:44:40 +00:00
|
|
|
};
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
If *-p* is supplied *rawshark* expects the following format. This
|
|
|
|
matches the __struct pcap_pkthdr__ structure and packet data used in
|
2019-03-07 19:36:14 +00:00
|
|
|
libpcap, Npcap, or WinPcap. This structure's format is platform-dependent; the
|
2021-06-18 10:20:51 +00:00
|
|
|
size of the __tv_sec__ field in the __struct timeval__ structure could be
|
|
|
|
32 bits or 64 bits. For *rawshark* to work, the layout of the
|
2013-07-28 21:12:07 +00:00
|
|
|
structure in the input must match the layout of the structure in
|
2021-06-18 10:20:51 +00:00
|
|
|
*rawshark*. Note that this format will probably be the same as the
|
|
|
|
previous format if *rawshark* is a 32-bit program, but will not
|
|
|
|
necessarily be the same if *rawshark* is a 64-bit program.
|
2010-10-15 16:05:06 +00:00
|
|
|
|
|
|
|
struct rawshark_rec_s {
|
|
|
|
struct timeval ts; /* Time stamp */
|
|
|
|
uint32_t caplen; /* Length of the packet buffer */
|
|
|
|
uint32_t len; /* "On the wire" length of the packet */
|
2012-12-30 20:39:45 +00:00
|
|
|
uint8_t data[caplen]; /* Packet data */
|
2010-10-15 16:05:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
In either case, the endianness (byte ordering) of each integer must match the
|
2021-06-18 10:20:51 +00:00
|
|
|
system on which *rawshark* is running.
|
2010-10-15 16:05:06 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== OUTPUT
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
If one or more fields are specified via the *-F* flag, *Rawshark* prints
|
2008-02-15 23:20:32 +00:00
|
|
|
the number, field type, and display format for each field on the first line
|
|
|
|
as "packet number" 0. For each record, the packet number, matching fields,
|
|
|
|
and a "1" or "0" are printed to indicate if the field matched any supplied
|
|
|
|
display filter. A "-" is used to signal the end of a field description and
|
2021-06-18 10:20:51 +00:00
|
|
|
at the end of each packet line. For example, the flags *-F ip.src -F
|
|
|
|
dns.qry.type* might generate the following output:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2008-03-07 23:44:40 +00:00
|
|
|
0 FT_IPv4 BASE_NONE - 1 FT_UINT16 BASE_HEX -
|
|
|
|
1 1="1" 0="192.168.77.10" 1 -
|
|
|
|
2 1="1" 0="192.168.77.250" 1 -
|
|
|
|
3 0="192.168.77.10" 1 -
|
|
|
|
4 0="74.125.19.104" 1 -
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Note that packets 1 and 2 are DNS queries, and 3 and 4 are not. Adding *-R "not dns"* still prints each line, but there's an indication
|
2008-02-15 23:20:32 +00:00
|
|
|
that packets 1 and 2 didn't pass the filter:
|
|
|
|
|
2008-03-07 23:44:40 +00:00
|
|
|
0 FT_IPv4 BASE_NONE - 1 FT_UINT16 BASE_HEX -
|
|
|
|
1 1="1" 0="192.168.77.10" 0 -
|
|
|
|
2 1="1" 0="192.168.77.250" 0 -
|
|
|
|
3 0="192.168.77.10" 1 -
|
|
|
|
4 0="74.125.19.104" 1 -
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
Also note that the output may be in any order, and that multiple matching
|
|
|
|
fields might be displayed.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== OPTIONS
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-d <encapsulation>::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Specify how the packet data should be dissected. The encapsulation is of the
|
2021-06-18 10:20:51 +00:00
|
|
|
form __type:value__, where __type__ is one of:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*encap*:__name__ Packet data should be dissected using the
|
|
|
|
libpcap/Npcap/WinPcap data link type (DLT) __name__, e.g. *encap:EN10MB* for
|
2013-07-28 21:12:07 +00:00
|
|
|
Ethernet. Names are converted using pcap_datalink_name_to_val().
|
|
|
|
A complete list of DLTs can be found at
|
2021-06-18 10:20:51 +00:00
|
|
|
https://www.tcpdump.org/linktypes.html.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*encap*:__number__ Packet data should be dissected using the
|
|
|
|
libpcap/Npcap/WinPcap LINKTYPE_ __number__, e.g. *encap:105* for raw IEEE
|
|
|
|
802.11 or *encap:101* for raw IP.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*proto*:__protocol__ Packet data should be passed to the specified Wireshark
|
|
|
|
protocol dissector, e.g. *proto:http* for HTTP data.
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-F <field to display>::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Add the matching field to the output. Fields are any valid display filter
|
2021-06-18 10:20:51 +00:00
|
|
|
field. More than one *-F* flag may be specified, and each field can match
|
|
|
|
multiple times in a given packet. A single field may be specified per *-F*
|
|
|
|
flag. If you want to apply a display filter, use the *-R* flag.
|
|
|
|
--
|
|
|
|
|
|
|
|
-h::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Print the version and options and exits.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-l::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Flush the standard output after the information for each packet is
|
2021-06-18 10:20:51 +00:00
|
|
|
printed. (This is not, strictly speaking, line-buffered if *-V*
|
|
|
|
was specified; however, it is the same as line-buffered if *-V* wasn't
|
|
|
|
specified, as only one line is printed for each packet, and, as *-l* is
|
2008-02-15 23:20:32 +00:00
|
|
|
normally used when piping a live capture to a program or script, so that
|
|
|
|
output for a packet shows up as soon as the packet is seen and
|
|
|
|
dissected, it should work just as well as true line-buffering. We do
|
|
|
|
this as a workaround for a deficiency in the Microsoft Visual C++ C
|
|
|
|
library.)
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
This may be useful when piping the output of *TShark* to another
|
2008-02-15 23:20:32 +00:00
|
|
|
program, as it means that the program to which the output is piped will
|
2021-06-18 10:20:51 +00:00
|
|
|
see the dissected data for a packet as soon as *TShark* sees the
|
2008-02-15 23:20:32 +00:00
|
|
|
packet and generates that output, rather than seeing it only when the
|
|
|
|
standard output buffer containing that data fills up.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-m <memory limit bytes>::
|
|
|
|
+
|
|
|
|
--
|
2017-01-23 16:57:32 +00:00
|
|
|
Limit rawshark's memory usage to the specified number of bytes. POSIX
|
|
|
|
(non-Windows) only.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2017-01-23 16:57:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-n::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Disable network object name resolution (such as hostname, TCP and UDP port
|
2021-06-18 10:20:51 +00:00
|
|
|
names), the *-N* flag might override this one.
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-N <name resolving flags>::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Turn on name resolving only for particular types of addresses and port
|
|
|
|
numbers, with name resolving for other types of addresses and port
|
2021-06-18 10:20:51 +00:00
|
|
|
numbers turned off. This flag overrides *-n* if both *-N* and *-n* are
|
|
|
|
present. If both *-N* and *-n* flags are not present, all name resolutions are
|
2008-02-15 23:20:32 +00:00
|
|
|
turned on.
|
|
|
|
|
|
|
|
The argument is a string that may contain the letters:
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*m* to enable MAC address resolution
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*n* to enable network address resolution
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*N* to enable using external resolvers (e.g., DNS) for network address
|
2012-07-08 01:31:48 +00:00
|
|
|
resolution
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*t* to enable transport-layer port number resolution
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*d* to enable resolution from captured DNS packets
|
2015-07-25 13:24:48 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*v* to enable VLAN IDs to names resolution
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-o <preference>:<value>::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Set a preference value, overriding the default value and any value read
|
|
|
|
from a preference file. The argument to the option is a string of the
|
2021-06-18 10:20:51 +00:00
|
|
|
form __prefname:value__, where __prefname__ is the name of the
|
2008-02-15 23:20:32 +00:00
|
|
|
preference (which is the same name that would appear in the preference
|
2021-06-18 10:20:51 +00:00
|
|
|
file), and __value__ is the value to which it should be set.
|
|
|
|
--
|
2010-10-15 16:05:06 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-p::
|
|
|
|
+
|
|
|
|
--
|
2010-10-15 16:05:06 +00:00
|
|
|
Assume that packet data is preceded by a pcap_pkthdr struct as defined in
|
|
|
|
pcap.h. On some systems the size of the timestamp data will be different from
|
|
|
|
the data written to disk. On other systems they are identical and this flag has
|
|
|
|
no effect.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2010-10-15 16:05:06 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-r <pipe>|-::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
Read packet data from __input source__. It can be either the name of a FIFO
|
2010-06-03 00:42:21 +00:00
|
|
|
(named pipe) or ``-'' to read data from the standard input, and must have
|
|
|
|
the record format specified above.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2017-02-16 23:31:56 +00:00
|
|
|
If you are sending data to rawshark from a parent process on Windows you
|
|
|
|
should not close rawshark's standard input handle prematurely, otherwise
|
|
|
|
the C runtime might trigger an exception.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2017-02-16 23:31:56 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-R <read (display) filter>::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Cause the specified filter (which uses the syntax of read/display filters,
|
2009-03-31 23:38:31 +00:00
|
|
|
rather than that of capture filters) to be applied before printing the output.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-s::
|
|
|
|
+
|
|
|
|
--
|
2009-03-31 23:38:31 +00:00
|
|
|
Allows standard pcap files to be used as input, by skipping over the 24
|
|
|
|
byte pcap file header.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-S::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Use the specified format string to print each field. The following formats
|
|
|
|
are supported:
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*%D* Field name or description, e.g. "Type" for dns.qry.type
|
2009-04-01 20:52:53 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*%N* Base 10 numeric value of the field.
|
2009-04-01 20:52:53 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*%S* String value of the field.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
For something similar to Wireshark's standard display ("Type: A (1)") you
|
2021-06-18 10:20:51 +00:00
|
|
|
could use *%D: %S (%N)*.
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-t a|ad|adoy|d|dd|e|r|u|ud|udoy::
|
|
|
|
+
|
|
|
|
--
|
2013-11-06 20:39:09 +00:00
|
|
|
Set the format of the packet timestamp printed in summary lines.
|
|
|
|
The format can be one of:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*a* absolute: The absolute time, as local time in your time zone,
|
2013-11-06 20:39:09 +00:00
|
|
|
is the actual time the packet was captured, with no date displayed
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*ad* absolute with date: The absolute date, displayed as YYYY-MM-DD,
|
2013-11-06 20:39:09 +00:00
|
|
|
and time, as local time in your time zone, is the actual time and date
|
|
|
|
the packet was captured
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*adoy* absolute with date using day of year: The absolute date,
|
2013-11-06 20:39:09 +00:00
|
|
|
displayed as YYYY/DOY, and time, as local time in your time zone,
|
|
|
|
is the actual time and date the packet was captured
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*d* delta: The delta time is the time since the previous packet was
|
2008-02-15 23:20:32 +00:00
|
|
|
captured
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*dd* delta_displayed: The delta_displayed time is the time since the
|
2013-11-06 20:39:09 +00:00
|
|
|
previous displayed packet was captured
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*e* epoch: The time in seconds since epoch (Jan 1, 1970 00:00:00)
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*r* relative: The relative time is the time elapsed between the first packet
|
2013-11-06 20:39:09 +00:00
|
|
|
and the current packet
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*u* UTC: The absolute time, as UTC, is the actual time the packet was
|
2013-11-06 20:39:09 +00:00
|
|
|
captured, with no date displayed
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*ud* UTC with date: The absolute date, displayed as YYYY-MM-DD,
|
2013-11-06 20:39:09 +00:00
|
|
|
and time, as UTC, is the actual time and date the packet was captured
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
*udoy* UTC with date using day of year: The absolute date, displayed
|
2013-11-06 20:39:09 +00:00
|
|
|
as YYYY/DOY, and time, as UTC, is the actual time and date the packet
|
|
|
|
was captured
|
|
|
|
|
|
|
|
The default format is relative.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2013-11-06 20:39:09 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
-v::
|
|
|
|
+
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
Print the version and exit.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-12-26 17:35:37 +00:00
|
|
|
include::diagnostic-options.adoc[]
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== READ FILTER SYNTAX
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
For a complete table of protocol and protocol fields that are filterable
|
2021-06-18 10:20:51 +00:00
|
|
|
in *TShark* see the xref:wireshark-filter.html[wireshark-filter](4) manual page.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
== FILES
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
These files contains various *Wireshark* configuration values.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Preferences::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __preferences__ files contain global (system-wide) and personal
|
2008-02-15 23:20:32 +00:00
|
|
|
preference settings. If the system-wide preference file exists, it is
|
|
|
|
read first, overriding the default settings. If the personal preferences
|
|
|
|
file exists, it is read next, overriding any previous values. Note: If
|
2021-06-18 10:20:51 +00:00
|
|
|
the command line option *-o* is used (possibly more than once), it will
|
2008-02-15 23:20:32 +00:00
|
|
|
in turn override values from the preferences files.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The preferences settings are in the form __prefname:value__,
|
2008-02-15 23:20:32 +00:00
|
|
|
one per line,
|
2021-06-18 10:20:51 +00:00
|
|
|
where __prefname__ is the name of the preference
|
|
|
|
and __value__ is the value to
|
|
|
|
which it should be set; white space is allowed between *:* and
|
|
|
|
__value__. A preference setting can be continued on subsequent lines by
|
|
|
|
indenting the continuation lines with white space. A *#* character
|
2008-02-15 23:20:32 +00:00
|
|
|
starts a comment that runs to the end of the line:
|
|
|
|
|
|
|
|
# Capture in promiscuous mode?
|
|
|
|
# TRUE or FALSE (case-insensitive).
|
|
|
|
capture.prom_mode: TRUE
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The global preferences file is looked for in the __wireshark__ directory
|
Clean up some man pages.
Consistently speak of "UNIX-compatible systems" when comparing UN*Xes
and Windows, and, the first time we mention "UNIX-compatible systems" in
a section or a list item, enumerate the not-dead-or-moribund ones.
(HP-UX is deemed moribund given that Itanium processors are no longer
being manufactured and HPE are apparently not porting HP-UX to x86-64,
choosing instead to run HP-UX Itanium applications in a compatibility
environment under Linux on x86-64.)
For the -D option, don't bother mentioning ifconfig -a or ip link show,
as there's no reason not to use -D if you want to know what you can
caputre on - for one thing, -D may list devices *other* than the network
interfaces listed by ifconfig -a or ip link show. In addition, don't
speak of code testing whether the interface can be opened, as recent
versions of libpcap don't check that, and neither do any of the programs
in the Wireshark release. (This was done so that, if there's an
itnerface that shows up in the enumeration but that can't be opened,
it'll be offered to the user, and they'll get a message if they try to
capture on it, indicating either that they need to somehow get the
necessary permissions or should report a bug.)
For the -i option, don't mention ifconfig -a or ip link show, as the
user should, again, use -D.
Give more detail when describing files and directories under the global
or personal preferences directory, calling out macOS specially for the
global preferences directory, as it's in the app bundle, and taking into
account that Wireshark might be installed under /usr rather than
/usr/local (for example, if it's installed from a package that's part of
a Linux distribution).
Replace the "Overrides XXX' description of some environment variables
with a more verbose description similar to what's used for other
environment variables.
2023-01-27 06:55:49 +00:00
|
|
|
under the __share__ subdirectory of the main installation directory. On
|
|
|
|
macOS, this would typically be
|
|
|
|
__/Application/Wireshark.app/Contents/Resources/share__; on other
|
|
|
|
UNIX-compatible systems, such as Linux, \*BSD, Solaris, and AIX, this
|
|
|
|
would typically be __/usr/share/wireshark/preferences__ for
|
|
|
|
system-installed packages and __/usr/local/share/wireshark/preferences__
|
|
|
|
for locally-installed packages; on Windows, this would typically be
|
|
|
|
__C:\Program Files\Wireshark\preferences__.
|
|
|
|
|
|
|
|
On UNIX-compatible systems, the personal preferences file is looked for
|
|
|
|
in __$XDG_CONFIG_HOME/wireshark/preferences__, (or, if
|
|
|
|
__$XDG_CONFIG_HOME/wireshark__ does not exist while __$HOME/.wireshark__
|
|
|
|
does exist, __$HOME/.wireshark/preferences__); this is typically
|
|
|
|
__$HOME/.config/wireshark/preferences__. On Windows,
|
|
|
|
the personal preferences file is looked for in
|
|
|
|
__%APPDATA%\Wireshark\preferences__ (or, if %APPDATA% isn't defined,
|
|
|
|
__%USERPROFILE%\Application Data\Wireshark\preferences__).
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
Disabled (Enabled) Protocols::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __disabled_protos__ files contain system-wide and personal lists of
|
2008-02-15 23:20:32 +00:00
|
|
|
protocols that have been disabled, so that their dissectors are never
|
|
|
|
called. The files contain protocol names, one per line, where the
|
|
|
|
protocol name is the same name that would be used in a display filter
|
|
|
|
for the protocol:
|
|
|
|
|
|
|
|
http
|
|
|
|
tcp # a comment
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The global __disabled_protos__ file uses the same directory as the global
|
2008-02-15 23:20:32 +00:00
|
|
|
preferences file.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The personal __disabled_protos__ file uses the same directory as the
|
2008-02-15 23:20:32 +00:00
|
|
|
personal preferences file.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (hosts)::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
If the personal __hosts__ file exists, it is
|
2008-02-15 23:20:32 +00:00
|
|
|
used to resolve IPv4 and IPv6 addresses before any other
|
2021-06-18 10:20:51 +00:00
|
|
|
attempts are made to resolve them. The file has the standard __hosts__
|
2008-02-15 23:20:32 +00:00
|
|
|
file syntax; each line contains one IP address and name, separated by
|
|
|
|
whitespace. The same directory as for the personal preferences file is
|
|
|
|
used.
|
|
|
|
|
2010-04-12 21:35:19 +00:00
|
|
|
Capture filter name resolution is handled by libpcap on UNIX-compatible
|
Clean up some man pages.
Consistently speak of "UNIX-compatible systems" when comparing UN*Xes
and Windows, and, the first time we mention "UNIX-compatible systems" in
a section or a list item, enumerate the not-dead-or-moribund ones.
(HP-UX is deemed moribund given that Itanium processors are no longer
being manufactured and HPE are apparently not porting HP-UX to x86-64,
choosing instead to run HP-UX Itanium applications in a compatibility
environment under Linux on x86-64.)
For the -D option, don't bother mentioning ifconfig -a or ip link show,
as there's no reason not to use -D if you want to know what you can
caputre on - for one thing, -D may list devices *other* than the network
interfaces listed by ifconfig -a or ip link show. In addition, don't
speak of code testing whether the interface can be opened, as recent
versions of libpcap don't check that, and neither do any of the programs
in the Wireshark release. (This was done so that, if there's an
itnerface that shows up in the enumeration but that can't be opened,
it'll be offered to the user, and they'll get a message if they try to
capture on it, indicating either that they need to somehow get the
necessary permissions or should report a bug.)
For the -i option, don't mention ifconfig -a or ip link show, as the
user should, again, use -D.
Give more detail when describing files and directories under the global
or personal preferences directory, calling out macOS specially for the
global preferences directory, as it's in the app bundle, and taking into
account that Wireshark might be installed under /usr rather than
/usr/local (for example, if it's installed from a package that's part of
a Linux distribution).
Replace the "Overrides XXX' description of some environment variables
with a more verbose description similar to what's used for other
environment variables.
2023-01-27 06:55:49 +00:00
|
|
|
systems, such as Linux, macOS, \*BSD, Solaris, and AIX, and by Npcap or
|
|
|
|
WinPcap on Windows. As such the Wireshark personal __hosts__ file will
|
|
|
|
not be consulted for capture filter name resolution.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2015-05-27 14:40:38 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (subnets)::
|
|
|
|
+
|
|
|
|
--
|
2016-07-15 00:21:58 +00:00
|
|
|
If an IPv4 address cannot be translated via name resolution (no exact
|
2021-06-18 10:20:51 +00:00
|
|
|
match is found) then a partial match is attempted via the __subnets__ file.
|
2015-05-27 14:40:38 +00:00
|
|
|
|
|
|
|
Each line of this file consists of an IPv4 address, a subnet mask length
|
|
|
|
separated only by a / and a name separated by whitespace. While the address
|
|
|
|
must be a full IPv4 address, any values beyond the mask length are subsequently
|
|
|
|
ignored.
|
|
|
|
|
|
|
|
An example is:
|
|
|
|
|
|
|
|
# Comments must be prepended by the # sign!
|
|
|
|
192.168.0.0/24 ws_test_network
|
|
|
|
|
|
|
|
A partially matched name will be printed as "subnet-name.remaining-address".
|
|
|
|
For example, "192.168.0.1" under the subnet above would be printed as
|
|
|
|
"ws_test_network.1"; if the mask length above had been 16 rather than 24, the
|
|
|
|
printed address would be ``ws_test_network.0.1".
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2015-05-27 14:40:38 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (ethers)::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __ethers__ files are consulted to correlate 6-byte hardware addresses to
|
|
|
|
names. First the personal __ethers__ file is tried and if an address is not
|
|
|
|
found there the global __ethers__ file is tried next.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
Each line contains one hardware address and name, separated by
|
|
|
|
whitespace. The digits of the hardware address are separated by colons
|
|
|
|
(:), dashes (-) or periods (.). The same separator character must be
|
|
|
|
used consistently in an address. The following three lines are valid
|
2021-06-18 10:20:51 +00:00
|
|
|
lines of an __ethers__ file:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
ff:ff:ff:ff:ff:ff Broadcast
|
|
|
|
c0-00-ff-ff-ff-ff TR_broadcast
|
|
|
|
00.00.00.00.00.00 Zero_broadcast
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The global __ethers__ file is looked for in the __/etc__ directory on
|
Clean up some man pages.
Consistently speak of "UNIX-compatible systems" when comparing UN*Xes
and Windows, and, the first time we mention "UNIX-compatible systems" in
a section or a list item, enumerate the not-dead-or-moribund ones.
(HP-UX is deemed moribund given that Itanium processors are no longer
being manufactured and HPE are apparently not porting HP-UX to x86-64,
choosing instead to run HP-UX Itanium applications in a compatibility
environment under Linux on x86-64.)
For the -D option, don't bother mentioning ifconfig -a or ip link show,
as there's no reason not to use -D if you want to know what you can
caputre on - for one thing, -D may list devices *other* than the network
interfaces listed by ifconfig -a or ip link show. In addition, don't
speak of code testing whether the interface can be opened, as recent
versions of libpcap don't check that, and neither do any of the programs
in the Wireshark release. (This was done so that, if there's an
itnerface that shows up in the enumeration but that can't be opened,
it'll be offered to the user, and they'll get a message if they try to
capture on it, indicating either that they need to somehow get the
necessary permissions or should report a bug.)
For the -i option, don't mention ifconfig -a or ip link show, as the
user should, again, use -D.
Give more detail when describing files and directories under the global
or personal preferences directory, calling out macOS specially for the
global preferences directory, as it's in the app bundle, and taking into
account that Wireshark might be installed under /usr rather than
/usr/local (for example, if it's installed from a package that's part of
a Linux distribution).
Replace the "Overrides XXX' description of some environment variables
with a more verbose description similar to what's used for other
environment variables.
2023-01-27 06:55:49 +00:00
|
|
|
UNIX-compatible systems, such as Linux, macOS, \*BSD, Solaris, and AIX,
|
|
|
|
and in the main installation directory (for example, __C:\Program
|
|
|
|
Files\Wireshark__) on Windows systems.
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The personal __ethers__ file is looked for in the same directory as the personal
|
2008-02-15 23:20:32 +00:00
|
|
|
preferences file.
|
|
|
|
|
2010-04-12 21:35:19 +00:00
|
|
|
Capture filter name resolution is handled by libpcap on UNIX-compatible
|
2019-03-07 19:36:14 +00:00
|
|
|
systems and Npcap or WinPcap on Windows. As such the Wireshark personal
|
2021-06-18 10:20:51 +00:00
|
|
|
__ethers__ file will not be consulted for capture filter name resolution.
|
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (manuf)::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __manuf__ file is used to match the 3-byte vendor portion of a 6-byte
|
2008-02-15 23:20:32 +00:00
|
|
|
hardware address with the manufacturer's name; it can also contain well-known
|
|
|
|
MAC addresses and address ranges specified with a netmask. The format of the
|
2021-06-18 10:20:51 +00:00
|
|
|
file is the same as the __ethers__ files, except that entries of the form:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
00:00:0C Cisco
|
|
|
|
|
|
|
|
can be provided, with the 3-byte OUI and the name for a vendor, and
|
|
|
|
entries such as:
|
|
|
|
|
|
|
|
00-00-0C-07-AC/40 All-HSRP-routers
|
|
|
|
|
|
|
|
can be specified, with a MAC address and a mask indicating how many bits
|
|
|
|
of the address must match. The above entry, for example, has 40
|
|
|
|
significant bits, or 5 bytes, and would match addresses from
|
|
|
|
00-00-0C-07-AC-00 through 00-00-0C-07-AC-FF. The mask need not be a
|
|
|
|
multiple of 8.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The __manuf__ file is looked for in the same directory as the global
|
2008-02-15 23:20:32 +00:00
|
|
|
preferences file.
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (services)::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __services__ file is used to translate port numbers into names.
|
2015-05-27 15:08:26 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The file has the standard __services__ file syntax; each line contains one
|
2015-05-27 15:08:26 +00:00
|
|
|
(service) name and one transport identifier separated by white space. The
|
|
|
|
transport identifier includes one port number and one transport protocol name
|
|
|
|
(typically tcp, udp, or sctp) separated by a /.
|
|
|
|
|
|
|
|
An example is:
|
|
|
|
|
2021-10-01 23:36:17 +00:00
|
|
|
mydns 5045/udp # My own Domain Name Server
|
|
|
|
mydns 5045/tcp # My own Domain Name Server
|
2021-06-18 10:20:51 +00:00
|
|
|
--
|
2015-05-27 15:08:26 +00:00
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
Name Resolution (ipxnets)::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
The __ipxnets__ files are used to correlate 4-byte IPX network numbers to
|
|
|
|
names. First the global __ipxnets__ file is tried and if that address is not
|
2008-02-15 23:20:32 +00:00
|
|
|
found there the personal one is tried next.
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The format is the same as the __ethers__
|
2008-02-15 23:20:32 +00:00
|
|
|
file, except that each address is four bytes instead of six.
|
|
|
|
Additionally, the address can be represented as a single hexadecimal
|
|
|
|
number, as is more common in the IPX world, rather than four hex octets.
|
2021-06-18 10:20:51 +00:00
|
|
|
For example, these four lines are valid lines of an __ipxnets__ file:
|
2008-02-15 23:20:32 +00:00
|
|
|
|
|
|
|
C0.A8.2C.00 HR
|
|
|
|
c0-a8-1c-00 CEO
|
|
|
|
00:00:BE:EF IT_Server1
|
|
|
|
110f FileServer3
|
|
|
|
|
2021-06-18 10:20:51 +00:00
|
|
|
The global __ipxnets__ file is looked for in the __/etc__ directory on
|
|