diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-02-19 08:06:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-02-19 08:06:27 +0000 |
commit | a5d5e3a55ad7d8cccf13a8cedfb295e029068da3 (patch) | |
tree | 5021aecc8302308ceac8411752084c96b9846362 /wiretap | |
parent | 585268e3e1056e802dcf6507e3613b92ca0d694c (diff) |
If we see a file with an unknown network type, report the type in a
"g_message()" message, as other capture-file readers do.
svn path=/trunk/; revision=1648
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/nettl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c index 2e30dc29d3..2c44ad298a 100644 --- a/wiretap/nettl.c +++ b/wiretap/nettl.c @@ -1,6 +1,6 @@ /* nettl.c * - * $Id: nettl.c,v 1.6 2000/02/17 21:08:15 oabad Exp $ + * $Id: nettl.c,v 1.7 2000/02/19 08:06:27 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -212,6 +212,8 @@ static int nettl_read(wtap *wth, int *err) wth->data_offset += length; break; default: + g_message("nettl: network type %u unknown or unsupported", + encap[3]); *err = WTAP_ERR_UNSUPPORTED_ENCAP; return -1; } |