pcap_setfilter: to dump the unread packets

From: ashley thomas (ashlythomas@hotmail.com)
Date: Wed Jun 06 2001 - 21:34:06 EST


Hi,

I am using libpcap 0.6 on Linux to capture packets from the interface.

In my application I am using pcap_setfilter to modify the filter
for capturing packets from the interface.
But after filter has been modified the libpcap retains the packets
that libpcap had got using the old filter (ie before pcap_setfilter
is called)

This filtering is done using a socket. So in pcap_setfilter is there
any way we can "dump" all the 'unread' packets captured using the old
filter which are present in the socket's buffer ?

thanks a lot
Ashley

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 07 2001 - 21:00:53 EST