aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-09-01 19:58:25 +0000
committerGuy Harris <guy@alum.mit.edu>2011-09-01 19:58:25 +0000
commit6ac265b51248462ffb810fd54bd6d36d35799841 (patch)
tree3d944cfa96b8c06dc4620d3c4eabe5eea3926dcf /wiretap/libpcap.c
parent11d248331218fa16dc2622ee9794115dbf0b39c1 (diff)
Merge pcap_fill_in_pseudo_header() into pcap_read_post_process().
svn path=/trunk/; revision=38844
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index 424f4324c1..c8e5cb7d74 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -673,12 +673,9 @@ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info,
wth->phdr.caplen = packet_size;
wth->phdr.len = orig_size;
- pcap_fill_in_pseudo_header(wth->file_type, wth->file_encap,
- buffer_start_ptr(wth->frame_buffer), wth->phdr.caplen,
- &wth->pseudo_header, -1);
-
- pcap_read_post_process(wth->file_encap, wth->phdr.caplen,
- libpcap->byte_swapped, buffer_start_ptr(wth->frame_buffer));
+ pcap_read_post_process(wth->file_type, wth->file_encap,
+ &wth->pseudo_header, buffer_start_ptr(wth->frame_buffer),
+ wth->phdr.caplen, libpcap->byte_swapped, -1);
return TRUE;
}
@@ -705,11 +702,8 @@ libpcap_seek_read(wtap *wth, gint64 seek_off,
if (!libpcap_read_rec_data(wth->random_fh, pd, length, err, err_info))
return FALSE; /* failed */
- pcap_fill_in_pseudo_header(wth->file_type, wth->file_encap, pd,
- length, pseudo_header, -1);
-
- pcap_read_post_process(wth->file_encap, length,
- libpcap->byte_swapped, pd);
+ pcap_read_post_process(wth->file_type, wth->file_encap,
+ pseudo_header, pd, length, libpcap->byte_swapped, -1);
return TRUE;
}