UATs could be put into "categories". The categories were defined only
authorGuy Harris <guy@alum.mit.edu>
Sun, 8 Jul 2012 01:00:46 +0000 (01:00 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sun, 8 Jul 2012 01:00:46 +0000 (01:00 -0000)
commit659cf0527ae9e16da3670e224f22b942b0c0a4a3
treea6ac5357f9edc209679c8192f54da09f4fd5ad72
parent1b1fbd24e72bb8cce69867f33f41ade6f3354384
UATs could be put into "categories".  The categories were defined only
implicitly by the #define name and string they were defined to; not all
UATs neatly fit into any of the categories, so some of them were put
into categories that weren't obviously correct for them, and one - the
display filter macro UAT - wasn't put into any category at all (which
caused crashes when editing them, as the GUI code that handled UAT
changes from a dialog assumed the category field was non-null).

The category was, in practice, used only to decide, in the
aforementioned GUI code, whether the packet summary pane needed to be
updated or not.  It also offered no option of "don't update the packet
summary pane *and* don't redissect anything", which is what would be
appropriate for the display filter macro UAT.

Replace the category with a set of fields indicating what the UAT
affects; we currently offer "dissection", which applies to most UATs
(any UAT in libwireshark presumably affects dissection at a minimum) and
"the set of named fields that exist".  Changing any UAT that affects
dissection requires a redissection; changing any UAT that affects the
set of named fields that exist requires a redissection *and* rebuilding
the packet summary pane.

Perhaps we also need "filtering", so that if you change a display filter
macro, we re-filter, in case the display is currently filtered with a
display filter that uses a macro that changed.

svn path=/trunk/; revision=43603
36 files changed:
asn1/c1222/packet-c1222-template.c
asn1/ess/packet-ess-template.c
asn1/ldap/packet-ldap-template.c
asn1/pres/packet-pres-template.c
asn1/snmp/packet-snmp-template.c
epan/dfilter/dfilter-macro.c
epan/dissectors/packet-ber.c
epan/dissectors/packet-bootp.c
epan/dissectors/packet-c1222.c
epan/dissectors/packet-dmp.c
epan/dissectors/packet-dtls.c
epan/dissectors/packet-ess.c
epan/dissectors/packet-http.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ieee802154.c
epan/dissectors/packet-imf.c
epan/dissectors/packet-ipsec.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-k12.c
epan/dissectors/packet-ldap.c
epan/dissectors/packet-mac-lte.c
epan/dissectors/packet-pres.c
epan/dissectors/packet-reload.c
epan/dissectors/packet-sccp.c
epan/dissectors/packet-snmp.c
epan/dissectors/packet-ssl.c
epan/dissectors/packet-user_encap.c
epan/dissectors/packet-vcdu.c
epan/dissectors/packet-zbee-security.c
epan/geoip_db.c
epan/oids.c
epan/uat-int.h
epan/uat.c
epan/uat.h
plugins/stats_tree/pinfo_stats_tree.c
ui/gtk/uat_gui.c