aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-01-03 18:09:49 -0800
committerGuy Harris <guy@alum.mit.edu>2017-01-04 02:10:24 +0000
commita2d6fb94fcefb10d5ef4650c1582d8c06a278bd5 (patch)
treebb17a54aa5d689ce47c679ff5d8f5e0aa1b91691
parentab286246dc22d446b7d149f23c231ba8dbd6b640 (diff)
No reason not to use etype_vals for an Ethertype field.
Maybe there was an issue on Windows back in the old days, when 1) we didn't have a shared libwireshark library from which to import functions and data variables and thus you couldn't get variables such as etype_vals in a plugin and 2) the Infiniband dissector was a plugin, but neither of those are the case any more. Change-Id: Id8b82886317bd36a32ad1e1591673623696d4808 Reviewed-on: https://code.wireshark.org/review/19530 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/dissectors/packet-infiniband.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c
index 768e76832f..8c16bd0956 100644
--- a/epan/dissectors/packet-infiniband.c
+++ b/epan/dissectors/packet-infiniband.c
@@ -5710,7 +5710,7 @@ void proto_register_infiniband(void)
},
{ &hf_infiniband_etype, {
"Ethertype", "infiniband.rwh.etype",
- FT_UINT16, BASE_HEX, NULL /*VALS(etype_vals)*/, 0x0, "Type", HFILL }
+ FT_UINT16, BASE_HEX, VALS(etype_vals), 0x0, "Type", HFILL }
},
/* Reliable Datagram Extended Transport Header (RDETH) */