diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-07 16:15:37 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-07 16:15:37 +0000 |
commit | 7757b2e72b9b84d1262acdd61124f450fb0199f8 (patch) | |
tree | 8602e5907bc45a8c177a131334bde39f7b60137a /wiretap/snoop.c | |
parent | f8046a1f2976386b093d24b69c6b934c21107dad (diff) |
I removed the per-file encapsulation type from wiretap, and make all filetypes
provide a per-packet encapsulation type. this required minor modifications to
ethereal.
svn path=/trunk/; revision=162
Diffstat (limited to 'wiretap/snoop.c')
-rw-r--r-- | wiretap/snoop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c index c43f9f5f38..1aedc9406f 100644 --- a/wiretap/snoop.c +++ b/wiretap/snoop.c @@ -1,6 +1,6 @@ /* snoop.c * - * $Id: snoop.c,v 1.1 1998/11/15 05:29:14 guy Exp $ + * $Id: snoop.c,v 1.2 1999/01/07 16:15:36 gram Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -145,6 +145,7 @@ int snoop_read(wtap *wth) wth->phdr.ts.tv_usec = ntohl(hdr.ts_usec); wth->phdr.caplen = packet_size; wth->phdr.len = ntohl(hdr.orig_len); + wth->phdr.pkt_encap = wth->encapsulation; /* Skip over the padding. */ fseek(wth->fh, ntohl(hdr.rec_len) - (sizeof hdr + packet_size), |