diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-19 08:06:27 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-19 08:06:27 +0000 |
commit | c9f1a0a09c4f1461d275a33cc499b33c66aeef3e (patch) | |
tree | 5021aecc8302308ceac8411752084c96b9846362 | |
parent | d5baf0f68a1f38e71070ca0170e1b9f48ae27feb (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1648 f5534014-38df-0310-8fa8-9805f1628bb7
-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; } |