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-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
under the __share__ subdirectory of the main installation directory (for
example, __/usr/local/share/wireshark/preferences__) on UNIX-compatible
2008-02-15 23:20:32 +00:00
systems, and in the main installation directory (for example,
2021-06-18 10:20:51 +00:00
__C:\Program Files\Wireshark\preferences__) on Windows systems.
2008-02-15 23:20:32 +00:00
The personal preferences file is looked for in
2021-06-18 10:20:51 +00:00
__$XDG_CONFIG_HOME/wireshark/preferences__
(or, if __$XDG_CONFIG_HOME/wireshark__ does not exist while __$HOME/.wireshark__
is present, __$HOME/.wireshark/preferences__) on
UNIX-compatible systems and __%APPDATA%\Wireshark\preferences__ (or, if
%APPDATA% isn't defined, __%USERPROFILE%\Application
Data\Wireshark\preferences__) on Windows systems.
--
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
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
__hosts__ file will not be consulted for capture filter name resolution.
--
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
2008-02-15 23:20:32 +00:00
UNIX-compatible systems, and in the main installation directory (for
2021-06-18 10:20:51 +00:00
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
2008-02-15 23:20:32 +00:00
UNIX-compatible systems, and in the main installation directory (for
2021-06-18 10:20:51 +00:00
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 __ipxnets__ file is looked for in 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
== ENVIRONMENT VARIABLES
2013-09-13 21:15:29 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_CONFIG_DIR::
+
--
2019-07-29 00:17:04 +00:00
This environment variable overrides the location of personal configuration
2021-06-18 10:20:51 +00:00
files. It defaults to __$XDG_CONFIG_HOME/wireshark__ (or __$HOME/.wireshark__ if
2019-07-29 00:17:04 +00:00
the former is missing while the latter exists). On Windows,
2021-06-18 10:20:51 +00:00
__%APPDATA%\Wireshark__ is used instead. Available since Wireshark 3.0.
--
2013-03-11 19:17:26 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_DEBUG_WMEM_OVERRIDE::
+
--
2013-03-11 19:17:26 +00:00
Setting this environment variable forces the wmem framework to use the
specified allocator backend for *all* allocations, regardless of which
backend is normally specified by the code. This is mainly useful to developers
2021-06-18 10:20:51 +00:00
when testing or debugging. See __README.wmem__ in the source distribution for
2013-03-11 19:17:26 +00:00
details.
2021-06-18 10:20:51 +00:00
--
2013-03-11 19:17:26 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_RUN_FROM_BUILD_DIRECTORY::
+
--
2010-02-24 05:13:27 +00:00
This environment variable causes the plugins and other data files to be loaded
from the build directory (where the program was compiled) rather than from the
standard locations. It has no effect when the program in question is running
with root (or setuid) permissions on *NIX.
2021-06-18 10:20:51 +00:00
--
2010-02-24 05:13:27 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_DATA_DIR::
+
--
2010-02-24 05:13:27 +00:00
This environment variable causes the various data files to be loaded from
a directory other than the standard locations. It has no effect when the
program in question is running with root (or setuid) permissions on *NIX.
2021-06-18 10:20:51 +00:00
--
2010-02-24 05:13:27 +00:00
2021-06-18 10:20:51 +00:00
ERF_RECORDS_TO_CHECK::
+
--
2010-02-24 05:13:27 +00:00
This environment variable controls the number of ERF records checked when
deciding if a file really is in the ERF format. Setting this environment
variable a number higher than the default (20) would make false positives
less likely.
2021-06-18 10:20:51 +00:00
--
2010-02-24 05:13:27 +00:00
2021-06-18 10:20:51 +00:00
IPFIX_RECORDS_TO_CHECK::
+
--
2010-10-20 18:00:25 +00:00
This environment variable controls the number of IPFIX records checked when
deciding if a file really is in the IPFIX format. Setting this environment
variable a number higher than the default (20) would make false positives
less likely.
2021-06-18 10:20:51 +00:00
--
2010-10-20 18:00:25 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_ABORT_ON_DISSECTOR_BUG::
+
--
If this environment variable is set, *Rawshark* will call abort(3)
2010-04-14 00:46:29 +00:00
when a dissector bug is encountered. abort(3) will cause the program to
2021-06-18 10:20:51 +00:00
exit abnormally; if you are running *Rawshark* in a debugger, it
2010-04-14 00:46:29 +00:00
should halt in the debugger and allow inspection of the process, and, if
you are not running it in a debugger, it will, on some OSes, assuming
2010-09-02 18:02:06 +00:00
your environment is configured correctly, generate a core dump file.
2010-04-14 00:46:29 +00:00
This can be useful to developers attempting to troubleshoot a problem
with a protocol dissector.
2021-06-18 10:20:51 +00:00
--
2010-04-13 22:08:56 +00:00
2021-06-18 10:20:51 +00:00
WIRESHARK_ABORT_ON_TOO_MANY_ITEMS::
+
--
If this environment variable is set, *Rawshark* will call abort(3)
2013-06-05 14:08:40 +00:00
if a dissector tries to add too many items to a tree (generally this
is an indication of the dissector not breaking out of a loop soon enough).
abort(3) will cause the program to exit abnormally; if you are running
2021-06-18 10:20:51 +00:00
*Rawshark* in a debugger, it should halt in the debugger and allow
2013-06-05 14:08:40 +00:00
inspection of the process, and, if you are not running it in a debugger,
it will, on some OSes, assuming your environment is configured correctly,
generate a core dump file. This can be useful to developers attempting to
troubleshoot a problem with a protocol dissector.
2021-06-18 10:20:51 +00:00
--
2013-06-05 14:08:40 +00:00
2021-06-18 10:20:51 +00:00
== SEE ALSO
2008-02-15 23:20:32 +00:00
2021-06-18 10:20:51 +00:00
xref:wireshark-filter.html[wireshark-filter](4), xref:wireshark.html[wireshark](1), xref:tshark.html[tshark](1), xref:editcap.html[editcap](1), xref:https://www.tcpdump.org/manpages/pcap.3pcap.html[pcap](3), xref:dumpcap.html[dumpcap](1),
xref:text2pcap.html[text2pcap](1), xref:https://www.tcpdump.org/manpages/pcap-filter.7.html[pcap-filter](7) or xref:https://www.tcpdump.org/manpages/tcpdump.1.html[tcpdump](8)
2008-02-15 23:20:32 +00:00
2021-06-18 10:20:51 +00:00
== NOTES
2008-02-15 23:20:32 +00:00
2021-10-01 23:36:17 +00:00
This is the manual page for *Rawshark* {wireshark-version}.
*Rawshark* is part of the *Wireshark* distribution.
The latest version of *Wireshark* can be found at https://www.wireshark.org.
2008-02-15 23:20:32 +00:00
2021-10-01 02:39:09 +00:00
HTML versions of the Wireshark project man pages are available at
2021-06-18 10:20:51 +00:00
https://www.wireshark.org/docs/man-pages.
2008-02-15 23:20:32 +00:00
2021-06-18 10:20:51 +00:00
== AUTHORS
2008-02-15 23:20:32 +00:00
2021-06-18 10:20:51 +00:00
*Rawshark* uses the same packet dissection code that *Wireshark* does, as
well as using many other modules from *Wireshark*; see the list of authors
in the *Wireshark* man page for a list of authors of that code.
2008-02-15 23:20:32 +00:00