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/libpcap.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/libpcap.c')
-rw-r--r-- | wiretap/libpcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index 4285319f02..bb9d0361c9 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1,6 +1,6 @@ /* libpcap.c * - * $Id: libpcap.c,v 1.2 1998/12/17 06:39:10 gram Exp $ + * $Id: libpcap.c,v 1.3 1999/01/07 16:15:36 gram Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -207,6 +207,7 @@ int libpcap_read(wtap *wth) wth->phdr.ts.tv_usec = hdr.ts_usec; wth->phdr.caplen = packet_size; wth->phdr.len = hdr.orig_len; + wth->phdr.pkt_encap = wth->encapsulation; return data_offset; } |