aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2016-03-13 23:16:20 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-03-18 05:41:36 +0000
commite1d54cfc3e8223bb4334e5aeed019dab35528e9b (patch)
treeab97ecbc78feb49dcd60f7b0bc053ac1954dfe5f /epan/prefs.c
parenteb6abe3a75f80776865332d4c28977a348b09a52 (diff)
IEEE 802.1Q/VLAN: Resolve ID to a describing name
A vlans file in the personal preference directory add an option to resolve VLAN IDs to a describing name. Format of vlan file is 123\tName of VLAN To enable the resolving the preference nameres.vlan_name must be set to TRUE. Bug: 11209 Change-Id: I3f00b4897aace89c03c57b68b6c4b6c8b7d4685a Reviewed-on: https://code.wireshark.org/review/14471 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 063e9c6268..fb99675ba0 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -3914,6 +3914,9 @@ string_to_name_resolve(const char *string, e_addr_resolve *name_resolve)
case 'd':
name_resolve->dns_pkt_addr_resolution = TRUE;
break;
+ case 'v':
+ name_resolve->vlan_name = TRUE;
+ break;
default:
/*
* Unrecognized letter.