diff options
author | Jeffrey Smith <whydoubt@gmail.com> | 2015-09-06 20:56:30 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-10-01 20:49:42 +0000 |
commit | 57d954e1689ab31c6afac0a787f13754b8a39a49 (patch) | |
tree | 84b10a57e6a83cb5c5ce23c99fe1d90d68ebad04 /epan/dissectors/packet-gvcp.c | |
parent | b02a0ee48a51ccbb33ad76ce84ecb05409a6973a (diff) |
Treat IPv4 subnet masks as distinct from addresses
While IPv4 subnet masks are obviously related and similar to IPv4
addresses, they are distinct enough that they need to be treated
seperately in some aspects. For instance, there is no value in
attempting to resolve a subnet mask.
This change creates a new display type: BASE_NETMASK, which allows distinction from FT_IPv4
(and possible name resolution) where appropriate.
Change-Id: I99e19c9a58eb613f8e58d481af84c30e2e5e14d7
Reviewed-on: https://code.wireshark.org/review/10438
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gvcp.c')
-rw-r--r-- | epan/dissectors/packet-gvcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gvcp.c b/epan/dissectors/packet-gvcp.c index e0eea9065c..00147571e9 100644 --- a/epan/dissectors/packet-gvcp.c +++ b/epan/dissectors/packet-gvcp.c @@ -2566,7 +2566,7 @@ void proto_register_gvcp(void) { &hf_gvcp_forceip_static_subnet_mask, { "Subnet Mask", "gvcp.cmd.forceip.subnetmask", - FT_IPv4, BASE_NONE, NULL, 0x0, + FT_IPv4, BASE_NETMASK, NULL, 0x0, NULL, HFILL }}, { &hf_gvcp_forceip_static_default_gateway, @@ -2847,7 +2847,7 @@ void proto_register_gvcp(void) { &hf_gvcp_current_subnet_mask, { "Subnet Mask", "gvcp.bootstrap.currentsubnetmask", - FT_IPv4, BASE_NONE, NULL, 0x0, + FT_IPv4, BASE_NETMASK, NULL, 0x0, NULL, HFILL }}, /* GVCP_CURRENT_DEFAULT_GATEWAY_0, 1, 2, 3 */ @@ -2933,7 +2933,7 @@ void proto_register_gvcp(void) {& hf_gvcp_persistent_subnet, { "Persistent Subnet Mask", "gvcp.bootstrap.persistentsubnetmask", - FT_IPv4, BASE_NONE, NULL, 0x0, + FT_IPv4, BASE_NETMASK, NULL, 0x0, NULL, HFILL }}, |