Treat IPv4 subnet masks as distinct from addresses
authorJeffrey Smith <whydoubt@gmail.com>
Mon, 7 Sep 2015 01:56:30 +0000 (20:56 -0500)
committerMichael Mann <mmann78@netscape.net>
Thu, 1 Oct 2015 20:49:42 +0000 (20:49 +0000)
commit57d954e1689ab31c6afac0a787f13754b8a39a49
tree84b10a57e6a83cb5c5ce23c99fe1d90d68ebad04
parentb02a0ee48a51ccbb33ad76ce84ecb05409a6973a
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>
21 files changed:
doc/README.dissector
epan/dfilter/scanner.l
epan/dissectors/packet-adwin-config.c
epan/dissectors/packet-afs.c
epan/dissectors/packet-bootp.c
epan/dissectors/packet-capwap.c
epan/dissectors/packet-chdlc.c
epan/dissectors/packet-dvmrp.c
epan/dissectors/packet-enip.c
epan/dissectors/packet-epl.c
epan/dissectors/packet-gvcp.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-olsr.c
epan/dissectors/packet-opsi.c
epan/dissectors/packet-ospf.c
epan/dissectors/packet-rip.c
epan/dissectors/packet-rsip.c
epan/dissectors/packet-smcr.c
epan/dissectors/packet-wassp.c
epan/proto.c
epan/proto.h