aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-11-27 16:40:45 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-11-27 16:40:45 +0000
commit078e09692aca65348565b9d28ddec8a25c5319fe (patch)
treeff1431e933ed296dc08d13251a0ab6fe7859cb7d /wiretap/file_access.c
parente16ff09bc0219580cab58b09f68cd7a14e220e92 (diff)
Added support for open TNEF files directly.
No we can decode those winmail.dat files. svn path=/trunk/; revision=26864
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index ce75770ba7..9d179637f6 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -77,6 +77,7 @@
#include "commview.h"
#include "pcapng.h"
#include "btsnoop.h"
+#include "tnef.h"
/* The open_file_* routines should return:
@@ -121,6 +122,7 @@ static wtap_open_routine_t open_routines_base[] = {
mpeg_open,
pcapng_open,
btsnoop_open,
+ tnef_open,
/* Files that don't have magic bytes at a fixed location,
* but that instead require a heuristic of some sort to
* identify them. This includes the ASCII trace files that
@@ -582,7 +584,13 @@ static const struct file_type_info dump_open_table_base[] = {
pcapng_dump_can_write_encap, pcapng_dump_open },
/* WTAP_FILE_BTSNOOP */
- { "Symbian OS btsnoop", "btsnoop", "*.log", NULL, FALSE, NULL, NULL }
+ { "Symbian OS btsnoop", "btsnoop", "*.log", NULL, FALSE, NULL, NULL },
+
+ /* WTAP_FILE_X2E_XORAYA */
+ { NULL, NULL, NULL, NULL, FALSE, NULL, NULL },
+
+ /* WTAP_FILE_TNEF */
+ { "Transport-Neutral Encapsulation Format", "tnef", "*.*", NULL, FALSE, NULL, NULL }
};
gint wtap_num_file_types = sizeof(dump_open_table_base) / sizeof(struct file_type_info);