diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-01-03 01:57:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-01-03 01:57:24 +0000 |
commit | 1af1cf3cc0b309e2712c3140a0dfd30a0e1703c7 (patch) | |
tree | 0a88a80dbb8d4d5b2d45a499fae90f95db4a19ae /file.c | |
parent | 9a503264660988584297e84cebe7201b8e45a4c9 (diff) |
The "lnk_t" field of per-packet data, and the "pkt_encap" field in the
packet header, are there only if "wiretap" is used, so protect their use
with "#ifdef WITH_WIRETAP".
svn path=/trunk/; revision=147
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |