4a42e1
From 8dfaa8fa7c97cd1372a0a233b83fbc7945447b75 Mon Sep 17 00:00:00 2001
4a42e1
From: Uli Heilmeier <uh@heilmeier.eu>
4a42e1
Date: Fri, 05 Oct 2018 08:54:55 +0200
4a42e1
Subject: [PATCH] *shark: Update help and manpage for name resolving
4a42e1
4a42e1
Add 'v' option for VLAN ID resolving and get rid of
4a42e1
deprecated 'C' option.
4a42e1
4a42e1
Bug: 14826
4a42e1
Change-Id: I63104f4a465d251048693ad02882ea7eb2c4d926
4a42e1
Reviewed-on: https://code.wireshark.org/review/30029
4a42e1
Petri-Dish: Anders Broman <a.broman58@gmail.com>
4a42e1
Tested-by: Petri Dish Buildbot
4a42e1
Reviewed-by: Anders Broman <a.broman58@gmail.com>
4a42e1
---
4a42e1
4a42e1
diff --git a/doc/rawshark.pod b/doc/rawshark.pod
4a42e1
index be6caee..8f10445 100644
4a42e1
--- a/doc/rawshark.pod
4a42e1
+++ b/doc/rawshark.pod
4a42e1
@@ -183,6 +183,8 @@
4a42e1
 
4a42e1
 B<d> to enable resolution from captured DNS packets
4a42e1
 
4a42e1
+B<v> to enable VLAN IDs to names resolution
4a42e1
+
4a42e1
 =item -o  E<lt>preferenceE<gt>:E<lt>valueE<gt>
4a42e1
 
4a42e1
 Set a preference value, overriding the default value and any value read
4a42e1
diff --git a/doc/tshark.pod b/doc/tshark.pod
4a42e1
index 263332b..8aff736 100644
4a42e1
--- a/doc/tshark.pod
4a42e1
+++ b/doc/tshark.pod
4a42e1
@@ -676,6 +676,8 @@
4a42e1
 
4a42e1
 B<t> to enable transport-layer port number resolution
4a42e1
 
4a42e1
+B<v> to enable VLAN IDs to names resolution
4a42e1
+
4a42e1
 =item -o  E<lt>preferenceE<gt>:E<lt>valueE<gt>
4a42e1
 
4a42e1
 Set a preference value, overriding the default value and any value read
4a42e1
diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template
4a42e1
index a25ea65..c45581f 100644
4a42e1
--- a/doc/wireshark.pod.template
4a42e1
+++ b/doc/wireshark.pod.template
4a42e1
@@ -499,6 +499,8 @@
4a42e1
 
4a42e1
 B<d> to enable resolution from captured DNS packets
4a42e1
 
4a42e1
+B<v> to enable VLAN IDs to names resolution
4a42e1
+
4a42e1
 =item -o  E<lt>preference/recent settingE<gt>
4a42e1
 
4a42e1
 Set a preference or recent value, overriding the default value and any value
4a42e1
diff --git a/docbook/wsug_src/WSUG_chapter_customize.asciidoc b/docbook/wsug_src/WSUG_chapter_customize.asciidoc
4a42e1
index 67afafc..a7411c4 100644
4a42e1
--- a/docbook/wsug_src/WSUG_chapter_customize.asciidoc
4a42e1
+++ b/docbook/wsug_src/WSUG_chapter_customize.asciidoc
4a42e1
@@ -76,7 +76,7 @@
4a42e1
 Processing:
4a42e1
   -R <read filter>         packet filter in Wireshark display filter syntax
4a42e1
   -n                       disable all name resolutions (def: all enabled)
4a42e1
-  -N <name resolve flags>  enable specific name resolution(s): "mnNtCd"
4a42e1
+  -N <name resolve flags>  enable specific name resolution(s): "mnNtdv"
4a42e1
   -d <layer_type>==<selector>,<decode_as_protocol> ...
4a42e1
                            "Decode As”, see the man page for details
4a42e1
                            Example: tcp.port==8888,http
4a42e1
@@ -295,6 +295,7 @@
4a42e1
 resolution, `n` to enable network address resolution, and `t` to enable
4a42e1
 transport-layer port number resolution. This overrides `-n` if both `-N` and
4a42e1
 `-n` are present. The letter `d` enables resolution from captured DNS packets.
4a42e1
+The letter `v` enables resolution from VLAN IDs to names.
4a42e1
 
4a42e1
 -o <preference or recent settings>::
4a42e1
 
4a42e1
diff --git a/docbook/wsug_src/rawshark-h.txt b/docbook/wsug_src/rawshark-h.txt
4a42e1
index 39aeec0..7de64ec 100644
4a42e1
--- a/docbook/wsug_src/rawshark-h.txt
4a42e1
+++ b/docbook/wsug_src/rawshark-h.txt
4a42e1
@@ -13,7 +13,7 @@
4a42e1
   -F <field>               field to display
4a42e1
   -m                       virtual memory limit, in bytes
4a42e1
   -n                       disable all name resolution (def: all enabled)
4a42e1
-  -N <name resolve flags>  enable specific name resolution(s): "mnNtd"
4a42e1
+  -N <name resolve flags>  enable specific name resolution(s): "mnNtdv"
4a42e1
   -p                       use the system's packet header format
4a42e1
                            (which may have 64-bit timestamps)
4a42e1
   -R <read filter>         packet filter in Wireshark display filter syntax
4a42e1
diff --git a/docbook/wsug_src/tshark-h.txt b/docbook/wsug_src/tshark-h.txt
4a42e1
index 9eaccda..ffe12b9 100644
4a42e1
--- a/docbook/wsug_src/tshark-h.txt
4a42e1
+++ b/docbook/wsug_src/tshark-h.txt
4a42e1
@@ -38,7 +38,7 @@
4a42e1
   -Y <display filter>      packet displaY filter in Wireshark display filter
4a42e1
                            syntax
4a42e1
   -n                       disable all name resolutions (def: all enabled)
4a42e1
-  -N <name resolve flags>  enable specific name resolution(s): "mnNtCd"
4a42e1
+  -N <name resolve flags>  enable specific name resolution(s): "mnNtdv"
4a42e1
   -d <layer_type>==<selector>,<decode_as_protocol> ...
4a42e1
                            "Decode As", see the man page for details
4a42e1
                            Example: tcp.port==8888,http
4a42e1
diff --git a/epan/prefs.c b/epan/prefs.c
4a42e1
index 34c05d3..d732eb2 100644
4a42e1
--- a/epan/prefs.c
4a42e1
+++ b/epan/prefs.c
4a42e1
@@ -4932,10 +4932,6 @@
4a42e1
         case 't':
4a42e1
             name_resolve->transport_name = TRUE;
4a42e1
             break;
4a42e1
-        case 'C':
4a42e1
-            /* DEPRECATED */
4a42e1
-            /* name_resolve->concurrent_dns */
4a42e1
-            break;
4a42e1
         case 'd':
4a42e1
             name_resolve->dns_pkt_addr_resolution = TRUE;
4a42e1
             break;
4a42e1
diff --git a/rawshark.c b/rawshark.c
4a42e1
index 61875c1..29cb2ba 100644
4a42e1
--- a/rawshark.c
4a42e1
+++ b/rawshark.c
4a42e1
@@ -190,7 +190,7 @@
4a42e1
     fprintf(output, "  -m                       virtual memory limit, in bytes\n");
4a42e1
 #endif
4a42e1
     fprintf(output, "  -n                       disable all name resolution (def: all enabled)\n");
4a42e1
-    fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtd\"\n");
4a42e1
+    fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtdv\"\n");
4a42e1
     fprintf(output, "  -p                       use the system's packet header format\n");
4a42e1
     fprintf(output, "                           (which may have 64-bit timestamps)\n");
4a42e1
     fprintf(output, "  -R <read filter>         packet filter in Wireshark display filter syntax\n");
4a42e1
diff --git a/tshark.c b/tshark.c
4a42e1
index a152c2b..2d84153 100644
4a42e1
--- a/tshark.c
4a42e1
+++ b/tshark.c
4a42e1
@@ -370,7 +370,7 @@
4a42e1
   fprintf(output, "  -Y <display filter>      packet displaY filter in Wireshark display filter\n");
4a42e1
   fprintf(output, "                           syntax\n");
4a42e1
   fprintf(output, "  -n                       disable all name resolutions (def: all enabled)\n");
4a42e1
-  fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtCd\"\n");
4a42e1
+  fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtdv\"\n");
4a42e1
   fprintf(output, "  -d %s ...\n", DECODE_AS_ARG_TEMPLATE);
4a42e1
   fprintf(output, "                           \"Decode As\", see the man page for details\n");
4a42e1
   fprintf(output, "                           Example: tcp.port==8888,http\n");
4a42e1
diff --git a/ui/commandline.c b/ui/commandline.c
4a42e1
index 6a26be3..7c0768a 100644
4a42e1
--- a/ui/commandline.c
4a42e1
+++ b/ui/commandline.c
4a42e1
@@ -123,7 +123,7 @@
4a42e1
     fprintf(output, "Processing:\n");
4a42e1
     fprintf(output, "  -R <read filter>         packet filter in Wireshark display filter syntax\n");
4a42e1
     fprintf(output, "  -n                       disable all name resolutions (def: all enabled)\n");
4a42e1
-    fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtd\"\n");
4a42e1
+    fprintf(output, "  -N <name resolve flags>  enable specific name resolution(s): \"mnNtdv\"\n");
4a42e1
     fprintf(output, "  -d %s ...\n", DECODE_AS_ARG_TEMPLATE);
4a42e1
     fprintf(output, "                           \"Decode As\", see the man page for details\n");
4a42e1
     fprintf(output, "                           Example: tcp.port==8888,http\n");
4a42e1
diff --git a/ui/dissect_opts.c b/ui/dissect_opts.c
4a42e1
index 77e7b58..c6aa771 100644
4a42e1
--- a/ui/dissect_opts.c
4a42e1
+++ b/ui/dissect_opts.c
4a42e1
@@ -79,7 +79,8 @@
4a42e1
                             "\t'n' to enable network address resolution\n"
4a42e1
                             "\t'N' to enable using external resolvers (e.g., DNS)\n"
4a42e1
                             "\t    for network address resolution\n"
4a42e1
-                            "\t't' to enable transport-layer port number resolution");
4a42e1
+                            "\t't' to enable transport-layer port number resolution\n"
4a42e1
+                            "\t'v' to enable VLAN IDs to names resolution");
4a42e1
             return FALSE;
4a42e1
         }
4a42e1
         break;