diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-22 02:29:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-22 02:29:40 +0000 |
commit | 4b9ab6d1fce496323994ad288599e0f716be3449 (patch) | |
tree | b2848d90e752e28925e1506f98136d732c256877 /wiretap/file.c | |
parent | 63a69a5ccaa96027d68119d36dda72480f5e9c29 (diff) |
Get rid of some cruft left in by previous checkins as placeholders.
Get rid of WTAP_ENCAP_NONE; replace it with WTAP_ENCAP_UNKNOWN, which
means "I can't handle that file, it's using an encapsulation I don't
support".
Check for encapsulations we don't support, and return an error (as is
already done in "libpcap.c").
Check for too-large packet sizes, and return an error (as is already
done in "libpcap.c").
Print unsigned quantities in Wiretap messages with "%u", not "%d".
svn path=/trunk/; revision=544
Diffstat (limited to 'wiretap/file.c')
-rw-r--r-- | wiretap/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file.c b/wiretap/file.c index f120b4ccf4..3e75cf1215 100644 --- a/wiretap/file.c +++ b/wiretap/file.c @@ -1,6 +1,6 @@ /* file.c * - * $Id: file.c,v 1.17 1999/08/19 05:31:33 guy Exp $ + * $Id: file.c,v 1.18 1999/08/22 02:29:38 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -104,7 +104,7 @@ wtap* wtap_open_offline(const char *filename, int *err) } /* initialization */ - wth->file_encap = WTAP_ENCAP_NONE; + wth->file_encap = WTAP_ENCAP_UNKNOWN; /* Try all file types */ for (i = 0; i < N_FILE_TYPES; i++) { |