On Oct 18, 2004, at 11:58 AM, Venkatramani, Bharath wrote:

I'm trying to write an application which the user can use to change the
filter anytime he wants. For instance, assuming that Filter A is set and
then Capture is called, where Capture is a function that captures packets.
Then I change the filter to Filter B, for instance. But now, this new filter
causes a compile error in my SetFilter function. Is there anything I should
do to make Capture capture packets only according to Filter B instead?

If by "compile error" you mean "error from pcap_compile()", then what you should do is supply a filter B that's valid. :-)


If you think it *is* valid, tell us what type of interface (Ethernet, etc.) you're trying to capture on, and what the filter expression in question is.



==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/

To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to