aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-01-30 19:26:05 +0000
committerMichael Mann <mmann78@netscape.net>2013-01-30 19:26:05 +0000
commitd6901da1d1b037c2969595acc952695ffd8ff9d8 (patch)
treed8263b949648830f01f98668a8b15d72cf68ab97 /epan/dissectors
parent942ac68bdc3eeca3a95c5abeabc9a86de8c19dbf (diff)
Wiretap: Add support for files contain GIF, PNG images
From Michal Labedzki, bug 8278 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8278) svn path=/trunk/; revision=47368
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-image-gif.c1
-rw-r--r--epan/dissectors/packet-image-png.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-image-gif.c b/epan/dissectors/packet-image-gif.c
index 23e7de8ea8..9151cdd7e2 100644
--- a/epan/dissectors/packet-image-gif.c
+++ b/epan/dissectors/packet-image-gif.c
@@ -688,4 +688,5 @@ proto_reg_handoff_gif(void)
/* Register the GIF media type */
dissector_add_string("media_type", "image/gif", gif_handle);
heur_dissector_add("http", dissect_gif_heur, proto_gif);
+ heur_dissector_add("wtap_file", dissect_gif_heur, proto_gif);
}
diff --git a/epan/dissectors/packet-image-png.c b/epan/dissectors/packet-image-png.c
index d9978d389c..fca50301d1 100644
--- a/epan/dissectors/packet-image-png.c
+++ b/epan/dissectors/packet-image-png.c
@@ -435,4 +435,5 @@ proto_reg_handoff_png(void)
dissector_handle_t png_handle = new_create_dissector_handle(dissect_png, proto_png);
dissector_add_string("media_type", "image/png", png_handle);
heur_dissector_add("http", dissect_png_heur, proto_png);
+ heur_dissector_add("wtap_file", dissect_png_heur, proto_png);
}