The "lnk_t" field of per-packet data, and the "pkt_encap" field in the
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Jan 1999 01:57:24 +0000 (01:57 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Jan 1999 01:57:24 +0000 (01:57 +0000)
packet header, are there only if "wiretap" is used, so protect their use
with "#ifdef WITH_WIRETAP".

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

file.c

diff --git a/file.c b/file.c
index 8adee33cc1fbf833ab1600f4c8300b7824c1115c..e8cb5ae7b8c44a49316b8066f86081d54348788d 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
 /* file.c
  * File I/O routines
  *
- * $Id: file.c,v 1.16 1999/01/02 06:10:52 gram Exp $
+ * $Id: file.c,v 1.17 1999/01/03 01:57:24 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -330,7 +330,9 @@ pcap_dispatch_cb(u_char *user, const struct pcap_pkthdr *phdr,
 #endif
   fdata->abs_secs  = phdr->ts.tv_sec;
   fdata->abs_usecs = phdr->ts.tv_usec;
+#ifdef WITH_WIRETAP
   fdata->lnk_t = phdr->pkt_encap;
+#endif
 
   /* If we don't have the time stamp of the first packet, it's because this
      is the first packet.  Save the time stamp of this packet as the time