diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-01-17 09:33:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-01-17 09:33:15 +0000 |
commit | 5910deaa460df74e66d8b4b4aa5f3293c31cd472 (patch) | |
tree | 2b334f7a4f0a6508e758291d9357487a274a8de2 /wiretap/file.c | |
parent | ea75a2a99ec61f9a7193f858f99935a78229ad47 (diff) |
Add suppport for Microsoft Network Monitor Ethernet capture files.
svn path=/trunk/; revision=171
Diffstat (limited to 'wiretap/file.c')
-rw-r--r-- | wiretap/file.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/wiretap/file.c b/wiretap/file.c index 9ff7538b24..28f1adf076 100644 --- a/wiretap/file.c +++ b/wiretap/file.c @@ -1,6 +1,6 @@ /* file.c * - * $Id: file.c,v 1.5 1999/01/02 06:10:55 gram Exp $ + * $Id: file.c,v 1.6 1999/01/17 09:33:15 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -30,6 +30,7 @@ #include "libpcap.h" #include "snoop.h" #include "iptrace.h" +#include "netmon.h" /* The open_file_* routines should return the WTAP_FILE_* type * that they are checking for if the file is successfully recognized @@ -70,6 +71,10 @@ wtap* wtap_open_offline(char *filename, int filetype) if ((wth->file_type = iptrace_open(wth)) != WTAP_FILE_UNKNOWN) { goto success; } + /* WTAP_FILE_NETMON */ + if ((wth->file_type = netmon_open(wth)) != WTAP_FILE_UNKNOWN) { + goto success; + } printf("failed\n"); /* WTAP_FILE_UNKNOWN */ @@ -103,6 +108,11 @@ wtap* wtap_open_offline(char *filename, int filetype) goto success; } break; + case WTAP_FILE_NETMON: + if ((wth->file_type = netmon_open(wth)) != WTAP_FILE_UNKNOWN) { + goto success; + } + break; default: goto failure; } |