summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2008-04-03 22:13:52 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2008-04-03 22:13:52 +0000
commit906d2f3cbb7343d38ae986f87b04efc4760aba78 (patch)
tree51ff06c9ccd87a169b568d3c515fad7613793950 /tshark.c
parent5916e54d06fc3bd7d1ec000d7b4165a6792a259c (diff)
downloadwireshark-906d2f3cbb7343d38ae986f87b04efc4760aba78.tar.gz
http://www.wireshark.org/lists/wireshark-dev/200803/msg00308.html
proto.[hc] define new APIs to allow delayed registration of protocol fields, so that dissectors with "flexible" fields like xml, radius, diameter, snmp do not have to load their files at startup but can do so as late as possible. gtk/dfilter_expr_dlg.c : have the expression dialog registering all prefixes so that all fileds appear in the dialog tshark.c register all prefixes when called with -G epan/radius_dict.l epan/dissectors/packet-radius.c epan/dissectors/packet-radius.h refactor registration to delay dictionary loading as long as possible svn path=/trunk/; revision=24762
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 0f0a26eb57..4ee751f0be 100644
--- a/tshark.c
+++ b/tshark.c
@@ -862,6 +862,8 @@ main(int argc, char *argv[])
If none of our build or other processes uses "-G" with no arguments,
we can just process it with the other arguments. */
if (argc >= 2 && strcmp(argv[1], "-G") == 0) {
+ proto_initialize_all_prefixes();
+
if (argc == 2)
proto_registrar_dump_fields(1);
else {