Blame SOURCES/wireshark-1.10.14-default-snaplen.patch

affdba
From 1fb88fef9c8a61be94960e8f4ee0dffc53fc0b67 Mon Sep 17 00:00:00 2001
affdba
From: rpm-build <rpm-build>
affdba
Date: Mon, 3 Apr 2017 15:18:41 +0200
affdba
Subject: [PATCH] Reflect new default snaplet in help and man pages
affdba
affdba
---
affdba
 doc/dumpcap.pod                             | 2 +-
affdba
 doc/tshark.pod                              | 2 +-
affdba
 doc/wireshark.pod.template                  | 4 ++--
affdba
 docbook/wsug_src/WSUG_app_tools.xml         | 4 ++--
affdba
 docbook/wsug_src/WSUG_chapter_capture.xml   | 4 ++--
affdba
 docbook/wsug_src/WSUG_chapter_customize.xml | 2 +-
affdba
 dumpcap.c                                   | 2 +-
affdba
 tshark.c                                    | 2 +-
affdba
 ui/gtk/main.c                               | 2 +-
affdba
 ui/qt/main.cpp                              | 2 +-
affdba
 10 files changed, 13 insertions(+), 13 deletions(-)
affdba
affdba
diff --git a/doc/dumpcap.pod b/doc/dumpcap.pod
affdba
index dfd84d8..e1dc293 100644
affdba
--- a/doc/dumpcap.pod
affdba
+++ b/doc/dumpcap.pod
affdba
@@ -299,7 +299,7 @@ have to explicitly set it to use it).
affdba
 Set the default snapshot length to use when capturing live data.
affdba
 No more than I<snaplen> bytes of each network packet will be read into
affdba
 memory, or saved to disk.  A value of 0 specifies a snapshot length of
affdba
-65535, so that the full packet is captured; this is the default.
affdba
+262144, so that the full packet is captured; this is the default.
affdba
 
affdba
 This option can occur multiple times. If used before the first
affdba
 occurrence of the B<-i> option, it sets the default snapshot length.
affdba
diff --git a/doc/tshark.pod b/doc/tshark.pod
affdba
index fee8cbc..ba06225 100644
affdba
--- a/doc/tshark.pod
affdba
+++ b/doc/tshark.pod
affdba
@@ -638,7 +638,7 @@ is one) will be checked against this filter.
affdba
 Set the default snapshot length to use when capturing live data.
affdba
 No more than I<snaplen> bytes of each network packet will be read into
affdba
 memory, or saved to disk.  A value of 0 specifies a snapshot length of
affdba
-65535, so that the full packet is captured; this is the default.
affdba
+262144, so that the full packet is captured; this is the default.
affdba
 
affdba
 This option can occur multiple times.  If used before the first
affdba
 occurrence of the B<-i> option, it sets the default snapshot length.
affdba
diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template
affdba
index 0010a47..130e7ef 100644
affdba
--- a/doc/wireshark.pod.template
affdba
+++ b/doc/wireshark.pod.template
affdba
@@ -536,7 +536,7 @@ capture file; packets not matching the filter are discarded.
affdba
 Set the default snapshot length to use when capturing live data.
affdba
 No more than I<snaplen> bytes of each network packet will be read into
affdba
 memory, or saved to disk.  A value of 0 specifies a snapshot length of
affdba
-65535, so that the full packet is captured; this is the default.
affdba
+262144, so that the full packet is captured; this is the default.
affdba
 
affdba
 This option can occur multiple times.  If used before the first
affdba
 occurrence of the B<-i> option, it sets the default snapshot length.
affdba
@@ -2345,7 +2345,7 @@ capturing.
affdba
 
affdba
 The I<Limit each packet to ... bytes> check box and field lets you
affdba
 specify a maximum number of bytes per packet to capture and save; if the
affdba
-check box is not checked, the limit will be 65535 bytes.
affdba
+check box is not checked, the limit will be 262144 bytes.
affdba
 
affdba
 The I<Capture Filter:> entry lets you specify the capture filter using a
affdba
 tcpdump-style filter string as described above.
affdba
diff --git a/docbook/wsug_src/WSUG_app_tools.xml b/docbook/wsug_src/WSUG_app_tools.xml
affdba
index 9996e24..bfcec24 100644
affdba
--- a/docbook/wsug_src/WSUG_app_tools.xml
affdba
+++ b/docbook/wsug_src/WSUG_app_tools.xml
affdba
@@ -40,7 +40,7 @@ Usage: tshark [options] ...
affdba
 Capture interface:
affdba
   -i <interface>           name or idx of interface (def: first non-loopback)
affdba
   -f <capture filter>      packet filter in libpcap filter syntax
affdba
-  -s <snaplen>             packet snapshot length (def: 65535)
affdba
+  -s <snaplen>             packet snapshot length (def: 262144)
affdba
   -p                       don't capture in promiscuous mode
affdba
   -I                       capture in monitor mode, if available
affdba
   -B <buffer size>         size of kernel buffer (def: 1MB)
affdba
@@ -190,7 +190,7 @@ Capture interface:
affdba
                                rpcap://<host>/<interface>
affdba
                                TCP@<host>:<port>
affdba
   -f <capture filter>      packet filter in libpcap filter syntax
affdba
-  -s <snaplen>             packet snapshot length (def: 65535)
affdba
+  -s <snaplen>             packet snapshot length (def: 262144)
affdba
   -p                       don't capture in promiscuous mode
affdba
   -I                       capture in monitor mode, if available
affdba
   -B <buffer size>         size of kernel buffer in MB (def: 2MB)
affdba
diff --git a/docbook/wsug_src/WSUG_chapter_capture.xml b/docbook/wsug_src/WSUG_chapter_capture.xml
affdba
index c031da3..140092a 100644
affdba
--- a/docbook/wsug_src/WSUG_chapter_capture.xml
affdba
+++ b/docbook/wsug_src/WSUG_chapter_capture.xml
affdba
@@ -310,7 +310,7 @@ wireshark -i eth0 -k
affdba
         <listitem>
affdba
           <para>
affdba
         The maximum amount of data that will be captured for each packet. 
affdba
-        The default value is set to the 65535 bytes.
affdba
+        The default value is set to the 262144 bytes.
affdba
               </para>
affdba
          </listitem>
affdba
         <listitem>
affdba
@@ -684,7 +684,7 @@ wireshark -i eth0 -k
affdba
         This field allows you to specify the maximum amount of 
affdba
         data that will be captured for each packet, and is 
affdba
         sometimes referred to as the <command>snaplen</command>. If disabled, 
affdba
-        the value is set to the maximum 65535, which will be sufficient for most
affdba
+        the value is set to the maximum 262144, which will be sufficient for most
affdba
         protocols. Some rules of thumb:
affdba
           </para>
affdba
         <itemizedlist>
affdba
diff --git a/docbook/wsug_src/WSUG_chapter_customize.xml b/docbook/wsug_src/WSUG_chapter_customize.xml
affdba
index 9849b43..cc87f73 100644
affdba
--- a/docbook/wsug_src/WSUG_chapter_customize.xml
affdba
+++ b/docbook/wsug_src/WSUG_chapter_customize.xml
affdba
@@ -63,7 +63,7 @@ Usage: wireshark [options] ... [ <infile> ]
affdba
 Capture interface:
affdba
   -i <interface>           name or idx of interface (def: first non-loopback)
affdba
   -f <capture filter>      packet filter in libpcap filter syntax
affdba
-  -s <snaplen>             packet snapshot length (def: 65535)
affdba
+  -s <snaplen>             packet snapshot length (def: 262144)
affdba
   -p                       don't capture in promiscuous mode
affdba
   -k                       start capturing immediately (def: do nothing)
affdba
   -S                       update packet display when new packets are captured
affdba
diff --git a/dumpcap.c b/dumpcap.c
affdba
index bae3fbf..066d039 100644
affdba
--- a/dumpcap.c
affdba
+++ b/dumpcap.c
affdba
@@ -488,7 +488,7 @@ print_usage(gboolean print_ver)
affdba
                     "                               rpcap://<host>/<interface>\n"
affdba
                     "                               TCP@<host>:<port>\n");
affdba
     fprintf(output, "  -f <capture filter>      packet filter in libpcap filter syntax\n");
affdba
-    fprintf(output, "  -s <snaplen>             packet snapshot length (def: 65535)\n");
affdba
+    fprintf(output, "  -s <snaplen>             packet snapshot length (def: %u)\n", WTAP_MAX_PACKET_SIZE);
affdba
     fprintf(output, "  -p                       don't capture in promiscuous mode\n");
affdba
 #ifdef HAVE_PCAP_CREATE
affdba
     fprintf(output, "  -I                       capture in monitor mode, if available\n");
affdba
diff --git a/tshark.c b/tshark.c
affdba
index 8cc4fae..a84f8e8 100644
affdba
--- a/tshark.c
affdba
+++ b/tshark.c
affdba
@@ -257,7 +257,7 @@ print_usage(gboolean print_ver)
affdba
   fprintf(output, "Capture interface:\n");
affdba
   fprintf(output, "  -i <interface>           name or idx of interface (def: first non-loopback)\n");
affdba
   fprintf(output, "  -f <capture filter>      packet filter in libpcap filter syntax\n");
affdba
-  fprintf(output, "  -s <snaplen>             packet snapshot length (def: 65535)\n");
affdba
+  fprintf(output, "  -s <snaplen>             packet snapshot length (def: %u)\n", WTAP_MAX_PACKET_SIZE);
affdba
   fprintf(output, "  -p                       don't capture in promiscuous mode\n");
affdba
 #ifdef HAVE_PCAP_CREATE
affdba
   fprintf(output, "  -I                       capture in monitor mode, if available\n");
affdba
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
affdba
index 3e22c3e..9839a30 100644
affdba
--- a/ui/gtk/main.c
affdba
+++ b/ui/gtk/main.c
affdba
@@ -1157,7 +1157,7 @@ print_usage(gboolean print_ver) {
affdba
   fprintf(output, "Capture interface:\n");
affdba
   fprintf(output, "  -i <interface>           name or idx of interface (def: first non-loopback)\n");
affdba
   fprintf(output, "  -f <capture filter>      packet filter in libpcap filter syntax\n");
affdba
-  fprintf(output, "  -s <snaplen>             packet snapshot length (def: 65535)\n");
affdba
+  fprintf(output, "  -s <snaplen>             packet snapshot length (def: 262144)\n");
affdba
   fprintf(output, "  -p                       don't capture in promiscuous mode\n");
affdba
   fprintf(output, "  -k                       start capturing immediately (def: do nothing)\n");
affdba
   fprintf(output, "  -S                       update packet display when new packets are captured\n");
affdba
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
affdba
index 3193702..eb0a3b6 100644
affdba
--- a/ui/qt/main.cpp
affdba
+++ b/ui/qt/main.cpp
affdba
@@ -224,7 +224,7 @@ print_usage(gboolean print_ver) {
affdba
     fprintf(output, "Capture interface:\n");
affdba
     fprintf(output, "  -i <interface>           name or idx of interface (def: first non-loopback)\n");
affdba
     fprintf(output, "  -f <capture filter>      packet filter in libpcap filter syntax\n");
affdba
-    fprintf(output, "  -s <snaplen>             packet snapshot length (def: 65535)\n");
affdba
+    fprintf(output, "  -s <snaplen>             packet snapshot length (def: 262144)\n");
affdba
     fprintf(output, "  -p                       don't capture in promiscuous mode\n");
affdba
     fprintf(output, "  -k                       start capturing immediately (def: do nothing)\n");
affdba
     fprintf(output, "  -Q                       quit Wireshark after capturing\n");
affdba
-- 
affdba
2.9.3
affdba