diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-05-27 20:33:22 -0400 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-05-28 15:40:39 +0000 |
commit | 48ce5629b0daaf0246f55d219d8d1ea8fd5c9699 (patch) | |
tree | 1b4e1a31ff45bccebe0bdd5ee7a3d25974ec43d3 /epan/dissectors/packet-ismp.c | |
parent | e5705070c8c170ef35e92abf22f18828a9db2120 (diff) |
Minor: use VALS macro (as per convention); Add editor modelines; Do whitespace changes.
Change-Id: I6007c1b2098d06e4a892474dd07f06a7538f94ef
Reviewed-on: https://code.wireshark.org/review/1843
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/dissectors/packet-ismp.c')
-rw-r--r-- | epan/dissectors/packet-ismp.c | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/epan/dissectors/packet-ismp.c b/epan/dissectors/packet-ismp.c index 69b6aece2d..19fd34d052 100644 --- a/epan/dissectors/packet-ismp.c +++ b/epan/dissectors/packet-ismp.c @@ -126,19 +126,19 @@ static gint ett_ismp_edp_tuples_leaf = -1; static const value_string edp_device_types[] = { - { EDP_DEVICE_TYPE_SFS17, "Network Switch running SecureFast version 1.7 or lower" }, - { EDP_DEVICE_TYPE_SFS18, "Network Switch running SecureFast version 1.8 or greater" }, - { EDP_DEVICE_TYPE_ROUTER, "Router" }, - { EDP_DEVICE_TYPE_BRIDGE, "Bridge" }, - { EDP_DEVICE_TYPE_VLANMAN, "Cabletron VLAN Manager" }, - { EDP_DEVICE_TYPE_NTSERVER, "Network Server (NT)" }, - { EDP_DEVICE_TYPE_NTCLIENT, "Network Workstation (NT)" }, - { EDP_DEVICE_TYPE_WIN95, "Windows95" }, - { EDP_DEVICE_TYPE_WIN98, "Windows98" }, - { EDP_DEVICE_TYPE_UNIXSERVER, "UNIX Server" }, - { EDP_DEVICE_TYPE_UNIXCLIENT, "UNIX Workstation" }, - { EDP_DEVICE_TYPE_ACCESSPOINT, "Roamabout wireless access point" }, - { 0, NULL }, + { EDP_DEVICE_TYPE_SFS17, "Network Switch running SecureFast version 1.7 or lower" }, + { EDP_DEVICE_TYPE_SFS18, "Network Switch running SecureFast version 1.8 or greater" }, + { EDP_DEVICE_TYPE_ROUTER, "Router" }, + { EDP_DEVICE_TYPE_BRIDGE, "Bridge" }, + { EDP_DEVICE_TYPE_VLANMAN, "Cabletron VLAN Manager" }, + { EDP_DEVICE_TYPE_NTSERVER, "Network Server (NT)" }, + { EDP_DEVICE_TYPE_NTCLIENT, "Network Workstation (NT)" }, + { EDP_DEVICE_TYPE_WIN95, "Windows95" }, + { EDP_DEVICE_TYPE_WIN98, "Windows98" }, + { EDP_DEVICE_TYPE_UNIXSERVER, "UNIX Server" }, + { EDP_DEVICE_TYPE_UNIXCLIENT, "UNIX Workstation" }, + { EDP_DEVICE_TYPE_ACCESSPOINT, "Roamabout wireless access point" }, + { 0, NULL }, }; @@ -207,8 +207,8 @@ static const value_string edp_tuple_types[] = /* Is value set? */ static const true_false_string is_set = { - "set", - "not set" + "set", + "not set" }; @@ -605,7 +605,7 @@ proto_register_ismp(void) }, { &hf_ismp_edp_device_type, { "Device Type", "ismp.edp.devtype", - FT_UINT16, BASE_DEC, edp_device_types, 0x0, + FT_UINT16, BASE_DEC, VALS(edp_device_types), 0x0, NULL, HFILL } }, { &hf_ismp_edp_module_rev, @@ -864,3 +864,16 @@ proto_reg_handoff_ismp(void) proto_ismp); dissector_add_uint("ethertype", ETHERTYPE_ISMP, ismp_handle); } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |