From 78631020b83c7aab12934f0cff72dbb5e3f0ba4a Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Tue, 16 Oct 2012 21:50:57 +0000 Subject: Add wtap_pseudo_header union to wtap_pkthdr structure. Use pkthdr instead of pseudo_header as argument for dissecting. svn path=/trunk/; revision=45601 --- capture_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capture_info.c') diff --git a/capture_info.c b/capture_info.c index 059269c63a..a4c5651fd3 100644 --- a/capture_info.c +++ b/capture_info.c @@ -236,7 +236,7 @@ void capture_info_new_packets(int to_read) int err; gchar *err_info; gint64 data_offset; - const struct wtap_pkthdr *phdr; + struct wtap_pkthdr *phdr; union wtap_pseudo_header *pseudo_header; int wtap_linktype; const guchar *buf; @@ -250,7 +250,7 @@ void capture_info_new_packets(int to_read) wtap_cleareof(info_data.wtap); if (wtap_read(info_data.wtap, &err, &err_info, &data_offset)) { phdr = wtap_phdr(info_data.wtap); - pseudo_header = wtap_pseudoheader(info_data.wtap); + pseudo_header = &phdr->pseudo_header; wtap_linktype = phdr->pkt_encap; buf = wtap_buf_ptr(info_data.wtap); -- cgit v1.2.3