Debian Codegraph @

doc/dwdump.1

raw
1 .TH dwdump 1 "Jan 2020" "Ido Schimmel"
2 .SH NAME
3 dwdump \- dump kernel dropped packets to a file
4 .SH SYNOPSIS
5 .sp
6 .ad l
7 .in +8
8 .ti -8
9 .B dwdump
10 .RI "[ " OPTIONS " ]"
11 .sp
12
13 .SH OPTIONS
14
15 .TP
16 .BR "\-w" , " --write " \fIFILE
17 Dump packets to provided file in pcap format. Defaults to standard output.
18
19 .TP
20 .BR "\-t", " --trunc " \fILENGTH
21 Ask the kernel to truncate packets to provided length. Defaults to no
22 truncation.
23
24 .TP
25 .BR "-q", " --query"
26 Query the kernel for current configuration and exit.
27
28 .TP
29 .BR "-l", " --limit " \fILIMIT
30 Ask the kernel to set the per-CPU packet queue limit to provided limit.
31 Defaults to 1,000 packets.
32
33 .TP
34 .BR "-p", " --passive"
35 Only listen on notified packets with no configuration. This is useful if the
36 kernel is already monitoring dropped packets and you only want to open another
37 listening socket.
38
39 .TP
40 .BR "-s", " --stats"
41 Query the kernel for statistics and exit.
42
43 .TP
44 .BR "-b", " --bufsize " \fISIZE
45 Set the socket's receive buffer to provided size. Defaults to 1MB.
46
47 .TP
48 .BR "-o", " --origin " "{ " sw " | " hw " }"
49 Ask the kernel to only monitor software or hardware originated drops. Defaults
50 to both. See \fBdevlink-trap\fR(8) for details on how to get hardware
51 originated drops to the kernel.
52
53 .TP
54 .BR "-e", " --exit"
55 Ask the kernel to stop monitoring and exit.
56
57 .SH "EXAMPLES"
58 .PP
59 dwdump -w drops.pcap
60 .RS 4
61 Dump dropped packets to a file.
62 .RE
63 .PP
64 dwdump | tshark -V -r -
65 .RS 4
66 Pipe dropped packets to Wireshark.
67 .RE
68 .PP
69 dwdump -o sw -w drops.pcap
70 .RS 4
71 Only monitor software originated drops.
72 .RE
73 .PP
74 dwdump -q
75 .RS 4
76 Query current configuration from the kernel and exit.
77 .RE
78
79 .SH SEE ALSO
80 .BR dropwatch (1),
81 .BR devlink-trap (8),
82 .BR tshark (1),
83 .br