aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/btsnoop.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-02-18 18:33:53 -0800
committerGuy Harris <guy@alum.mit.edu>2016-02-19 02:34:50 +0000
commit1e8905ca8e1db9231bc5381887850aa3eca7f735 (patch)
treeb445b379bc601311a64d4453bfc54be10e05aad9 /wiretap/btsnoop.c
parent7a5c04e243ff13b43618f8385f52c2186f753870 (diff)
Don't bother setting phdr->pkt_encap to wth->file_encap.
wtap_read() and wtap_seek_read() now do so before calling the read or seek-read routine, so there's no need to do so in those routines. Rename hcidump_process_packet() to hcidump_read_packet() while we're at it, as it doesn't just process an already-read packet, it does the reading as well as the processing. Change-Id: Ic13da6a2096e68550d80f2eff31f03d0edb58147 Reviewed-on: https://code.wireshark.org/review/13998 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/btsnoop.c')
-rw-r--r--wiretap/btsnoop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wiretap/btsnoop.c b/wiretap/btsnoop.c
index 5ecb42690a..c443723e9e 100644
--- a/wiretap/btsnoop.c
+++ b/wiretap/btsnoop.c
@@ -198,7 +198,6 @@ static gboolean btsnoop_read_record(wtap *wth, FILE_T fh,
ts -= KUnixTimeBase;
phdr->rec_type = REC_TYPE_PACKET;
- phdr->pkt_encap = wth->file_encap;
phdr->presence_flags = WTAP_HAS_TS|WTAP_HAS_CAP_LEN;
phdr->ts.secs = (guint)(ts / 1000000);
phdr->ts.nsecs = (guint)((ts % 1000000) * 1000);