hi all,

I have a query regarding ioctl function. I am using openbsd 2.9

BIOCSETF option in ioctl function is used to set a new filter to the
interface.
It also does the action of BIOCFLUSH, in the sense that it flushes the
packets in the buffer if any, right ?

I need BIOCSETF 's action with out the 'flushing'.  I looked at the code

under case 'BIOCSETF'. In fact a function called bpf_reset_d(d) is
called to
flush the packet buffer.
So i commented that out ie. do not call bpf_reset_d().

Will this serve my purpose of changing the bpf filter without flushing
the packets already in the buffer.

Any information on the sbuf,hbuf,fbuf would be great.

thanks a lot
ashley

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to