diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 09:09:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 09:09:11 +0000 |
commit | 4212ae25fd5a0dac9b092e30052cd5c79c8b8266 (patch) | |
tree | 7b9d07bdea240d2e0c5919b08f5991720be5d0c6 /gtk | |
parent | 57d66834461c279f3feb9fe04d879017b98fdc44 (diff) | |
download | wireshark-4212ae25fd5a0dac9b092e30052cd5c79c8b8266.tar.gz wireshark-4212ae25fd5a0dac9b092e30052cd5c79c8b8266.tar.bz2 wireshark-4212ae25fd5a0dac9b092e30052cd5c79c8b8266.zip |
When the dissector tables are reset to the default settings, the list of
IP protocol numbers to be decoded as TCP and as UDP should be reset as
well.
svn path=/trunk/; revision=4313
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/decode_as_dlg.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk/decode_as_dlg.c b/gtk/decode_as_dlg.c index 118eca3a2c..537b0c9b9f 100644 --- a/gtk/decode_as_dlg.c +++ b/gtk/decode_as_dlg.c @@ -1,6 +1,6 @@ /* decode_as_dlg.c * - * $Id: decode_as_dlg.c,v 1.15 2001/12/03 08:47:31 guy Exp $ + * $Id: decode_as_dlg.c,v 1.16 2001/12/03 09:09:11 guy Exp $ * * Routines to modify dissector tables on the fly. * @@ -314,6 +314,15 @@ decode_show_reset_cb (GtkWidget *reset_bt, gpointer parent_w) g_slist_free(dissector_reset_list); dissector_reset_list = NULL; + /* + * Clear the list of IP protocol numbers to be decoded as TCP + * and as UDP. + */ + g_slist_free(decode_as_tcp); + decode_as_tcp = NULL; + g_slist_free(decode_as_udp); + decode_as_udp = NULL; + redissect_packets(&cfile); gtk_widget_destroy(GTK_WIDGET(parent_w)); |