'\" t
.\"     Title: captype
.\"    Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.15
.\"      Date: 2023-06-28
.\"    Manual: \ \&
.\"    Source: \ \&
.\"  Language: English
.\"
.TH "CAPTYPE" "1" "2023-06-28" "\ \&" "\ \&"
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.ss \n[.ss] 0
.nh
.ad l
.de URL
\fI\\$2\fP <\\$1>\\$3
..
.als MTO URL
.if \n[.g] \{\
.  mso www.tmac
.  am URL
.    ad l
.  .
.  am MTO
.    ad l
.  .
.  LINKSTYLE blue R < >
.\}
.SH "NAME"
captype \- Prints the types of capture files
.SH "SYNOPSIS"
.sp
\fBcaptype\fP
[\~\fB\-h\fP\~]
[\~\fB\-v\fP\~]
<\fIinfile\fP>
\fI...\fP
.SH "DESCRIPTION"
.sp
\fBCaptype\fP is a program that opens one or more capture files and
prints the capture file type of each <\fIinfile\fP>.
.sp
\fBCaptype\fP is able to detect and read the same capture files that are
supported by \fBWireshark\fP.
The input files don\(cqt need a specific filename extension; the file
format and an optional gzip, zstd or lz4 compression will be automatically detected.
Near the beginning of the DESCRIPTION section of wireshark(1) or
\c
.URL "https://www.wireshark.org/docs/man\-pages/wireshark.html" ""
is a detailed description of the way \fBWireshark\fP handles this, which is
the same way \fBCaptype\fP handles this.
.SH "OPTIONS"
.sp
\-h|\-\-help
.RS 4
.sp
Print the version number and options and exit.
.RE
.sp
\-v|\-\-version
.RS 4
.sp
Print the full version information and exit.
.RE
.SH "DIAGNOSTIC OPTIONS"
.sp
\-\-log\-level <level>
.RS 4
Set the active log level.
Supported levels in lowest to highest order are "noisy", "debug", "info", "message", "warning", "critical", and "error".
Messages at each level and higher will be printed, for example "warning" prints "warning", "critical", and "error" messages and "noisy" prints all messages.
Levels are case insensitive.
.RE
.sp
\-\-log\-fatal <level>
.RS 4
Abort the program if any messages are logged at the specified level or higher.
For example, "warning" aborts on any "warning", "critical", or "error" messages.
.RE
.sp
\-\-log\-domains <list>
.RS 4
Only print messages for the specified log domains, e.g. "GUI,Epan,sshdump".
List of domains must be comma\-separated.
.RE
.sp
\-\-log\-debug <list>
.RS 4
Force the specified domains to log at the "debug" level.
List of domains must be comma\-separated.
.RE
.sp
\-\-log\-noisy <list>
.RS 4
Force the specified domains to log at the "noisy" level.
List of domains must be comma\-separated.
.RE
.sp
\-\-log\-file <path>
.RS 4
Write log messages and stderr output to the specified file.
.RE
.SH "SEE ALSO"
.sp
pcap(3), wireshark(1), mergecap(1), editcap(1), tshark(1),
dumpcap(1), capinfos(1), pcap\-filter(7) or tcpdump(8)
.SH "NOTES"
.sp
\fBCaptype\fP is part of the \fBWireshark\fP distribution.  The latest version
of \fBWireshark\fP can be found at \c
.URL "https://www.wireshark.org" "" "."
.sp
HTML versions of the Wireshark project man pages are available at
.URL "https://www.wireshark.org/docs/man\-pages" "" "."
.SH "AUTHORS"
.sp
.B Original Author
.br
Ian Schorr <ian[AT]ianschorr.com>
.sp
.B Contributors
.br
Gerald Combs <gerald[AT]wireshark.org>
.br
Jim Young <jyoung[AT]gsu.edu>