aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-03-25 08:53:58 -0700
committerGuy Harris <gharris@steve.local>2009-03-25 08:53:58 -0700
commit7326e1ad48ee6fbaab8f56ea63190052a5102949 (patch)
tree944d01029f46aae9a3beac2619b648f15b3bca9a /pcap-linux.c
parent64b88abf981e44827de46bb09d5dd510b841f9f8 (diff)
prev_pkt is in the pcap_md structure, not the pcap_t structure itself.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index b9809b0..ce914aa 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2213,18 +2213,18 @@ pcap_get_ring_frame(pcap_t *handle, int status)
static inline void
pcap_release_previous_ring_frame(pcap_t *handle)
{
- if (handle->prev_pkt.raw != NULL) {
+ if (handle->md.prev_pkt.raw != NULL) {
switch (handle->md.tp_version) {
case TPACKET_V1:
- handle->prev_pkt.h1->tp_status = TP_STATUS_KERNEL;
+ handle->md.prev_pkt.h1->tp_status = TP_STATUS_KERNEL;
break;
#ifdef HAVE_TPACKET2
case TPACKET_V2:
- handle->prev_pkt.h2->tp_status = TP_STATUS_KERNEL;
+ handle->md.prev_pkt.h2->tp_status = TP_STATUS_KERNEL;
break;
#endif
}
- handle->prev_pkt.raw = NULL;
+ handle->md.prev_pkt.raw = NULL;
}
}
@@ -2470,7 +2470,7 @@ skip:
* as pcap_next() and pcap_next_ex() - expect the packet
* to be available until the next pcap_dispatch() call.
*/
- handle->prev_pkt = h;
+ handle->md.prev_pkt = h;
if (++handle->offset >= handle->cc)
handle->offset = 0;