From: guy Date: Sat, 19 Feb 2000 08:06:27 +0000 (+0000) Subject: If we see a file with an unknown network type, report the type in a X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=c9f1a0a09c4f1461d275a33cc499b33c66aeef3e 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 --- 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 @@ -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; }