|
|
60db69 |
From 5cbf42acb616a34d5e41f03b881f8552e08855a7 Mon Sep 17 00:00:00 2001
|
|
|
60db69 |
From: Martin Sehnoutka <msehnout@redhat.com>
|
|
|
60db69 |
Date: Thu, 4 May 2017 12:31:21 +0200
|
|
|
60db69 |
Subject: [PATCH] Make the default capture buffer bigger.
|
|
|
60db69 |
|
|
|
60db69 |
---
|
|
|
60db69 |
capture_opts.h | 2 +-
|
|
|
60db69 |
doc/dumpcap.pod | 4 ++--
|
|
|
60db69 |
doc/tshark.pod | 4 ++--
|
|
|
60db69 |
doc/wireshark.pod.template | 4 ++--
|
|
|
60db69 |
4 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
60db69 |
|
|
|
60db69 |
diff --git a/capture_opts.h b/capture_opts.h
|
|
|
60db69 |
index c2f41d2..29a7132 100644
|
|
|
60db69 |
--- a/capture_opts.h
|
|
|
60db69 |
+++ b/capture_opts.h
|
|
|
60db69 |
@@ -243,7 +243,7 @@ extern void
|
|
|
60db69 |
collect_ifaces(capture_options *capture_opts);
|
|
|
60db69 |
|
|
|
60db69 |
/* Default capture buffer size in Mbytes. */
|
|
|
60db69 |
-#define DEFAULT_CAPTURE_BUFFER_SIZE 2
|
|
|
60db69 |
+#define DEFAULT_CAPTURE_BUFFER_SIZE 4
|
|
|
60db69 |
|
|
|
60db69 |
#ifdef __cplusplus
|
|
|
60db69 |
}
|
|
|
60db69 |
diff --git a/doc/dumpcap.pod b/doc/dumpcap.pod
|
|
|
60db69 |
index e1dc293..090cd53 100644
|
|
|
60db69 |
--- a/doc/dumpcap.pod
|
|
|
60db69 |
+++ b/doc/dumpcap.pod
|
|
|
60db69 |
@@ -114,11 +114,11 @@ of size one megabyte each.
|
|
|
60db69 |
|
|
|
60db69 |
=item -B E<lt>capture buffer sizeE<gt>
|
|
|
60db69 |
|
|
|
60db69 |
-Set capture buffer size (in MiB, default is 2 MiB). This is used by
|
|
|
60db69 |
+Set capture buffer size (in MiB, default is 4 MiB). This is used by
|
|
|
60db69 |
the capture driver to buffer packet data until that data can be written
|
|
|
60db69 |
to disk. If you encounter packet drops while capturing, try to increase
|
|
|
60db69 |
this size. Note that, while B<Dumpcap> attempts to set the buffer size
|
|
|
60db69 |
-to 2 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
+to 4 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
system or interface on which you're capturing might silently limit the
|
|
|
60db69 |
capture buffer size to a lower value or raise it to a higher value.
|
|
|
60db69 |
|
|
|
60db69 |
diff --git a/doc/tshark.pod b/doc/tshark.pod
|
|
|
60db69 |
index ba06225..38c43dd 100644
|
|
|
60db69 |
--- a/doc/tshark.pod
|
|
|
60db69 |
+++ b/doc/tshark.pod
|
|
|
60db69 |
@@ -214,11 +214,11 @@ of size one megabyte each.
|
|
|
60db69 |
|
|
|
60db69 |
=item -B E<lt>capture buffer sizeE<gt>
|
|
|
60db69 |
|
|
|
60db69 |
-Set capture buffer size (in MiB, default is 2 MiB). This is used by
|
|
|
60db69 |
+Set capture buffer size (in MiB, default is 4 MiB). This is used by
|
|
|
60db69 |
the capture driver to buffer packet data until that data can be written
|
|
|
60db69 |
to disk. If you encounter packet drops while capturing, try to increase
|
|
|
60db69 |
this size. Note that, while B<Tshark> attempts to set the buffer size
|
|
|
60db69 |
-to 2 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
+to 4 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
system or interface on which you're capturing might silently limit the
|
|
|
60db69 |
capture buffer size to a lower value or raise it to a higher value.
|
|
|
60db69 |
|
|
|
60db69 |
diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template
|
|
|
60db69 |
index 130e7ef..1e9681f 100644
|
|
|
60db69 |
--- a/doc/wireshark.pod.template
|
|
|
60db69 |
+++ b/doc/wireshark.pod.template
|
|
|
60db69 |
@@ -280,11 +280,11 @@ of size one megabyte each.
|
|
|
60db69 |
|
|
|
60db69 |
=item -B E<lt>capture buffer sizeE<gt>
|
|
|
60db69 |
|
|
|
60db69 |
-Set capture buffer size (in MiB, default is 2 MiB). This is used by
|
|
|
60db69 |
+Set capture buffer size (in MiB, default is 4 MiB). This is used by
|
|
|
60db69 |
the capture driver to buffer packet data until that data can be written
|
|
|
60db69 |
to disk. If you encounter packet drops while capturing, try to increase
|
|
|
60db69 |
this size. Note that, while B<Wireshark> attempts to set the buffer size
|
|
|
60db69 |
-to 2 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
+to 4 MiB by default, and can be told to set it to a larger value, the
|
|
|
60db69 |
system or interface on which you're capturing might silently limit the
|
|
|
60db69 |
capture buffer size to a lower value or raise it to a higher value.
|
|
|
60db69 |
|
|
|
60db69 |
--
|
|
|
60db69 |
2.9.3
|
|
|
60db69 |
|