From 96d739b7908fe01eaa840e90f652bb8175294411 Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Tue, 18 Apr 2006 10:04:18 +0000 Subject: From W. Borgert: Currently, the filename IOR.txt is hardcoded into ethereal. The patch allows the user to change it. Thanks for applying! svn path=/trunk/; revision=17894 --- epan/dissectors/packet-giop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-giop.c') diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index e89631c308..8e6cbc2cad 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -790,6 +790,7 @@ GHashTable *giop_objkey_hash = NULL; /* hash */ gboolean giop_desegment = TRUE; +static const char *giop_ior_file = "IOR.txt"; /* * ------------------------------------------------------------------------------------------+ @@ -1391,7 +1392,7 @@ static void giop_init(void) { giop_complete_reply_hash = g_hash_table_new(complete_reply_hash_fn, complete_reply_equal_fn); - read_IOR_strings_from_file("IOR.txt", 600); /* testing */ + read_IOR_strings_from_file(giop_ior_file, 600); } @@ -4312,6 +4313,8 @@ proto_register_giop (void) "Whether the GIOP dissector should reassemble messages spanning multiple TCP segments." " To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.", &giop_desegment); + prefs_register_string_preference(giop_module, "ior_txt", "Stringified IORs", + "File containing stringified IORs, one per line.", &giop_ior_file); /* * Init the giop user module hash tables here, as giop users -- cgit v1.2.3