If we see a file with an unknown network type, report the type in a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 19 Feb 2000 08:06:27 +0000 (08:06 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 19 Feb 2000 08:06:27 +0000 (08:06 +0000)
"g_message()" message, as other capture-file readers do.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1648 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/nettl.c

index 2e30dc29d3771e05cb26f9f0190530854c795ae4..2c44ad298ac5356b00afa1acb21eb20af4f3f8de 100644 (file)
@@ -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;
     }