> I have made the change in pcap-linux.c
> but EIOCFLUSH is not recognized ...
That's because it's *not a Linux ioctl*; I specifically said "on
{Digital,Tru64} UNIX" in that section - it's a Digital UNIX ioctl.
> Which is the header file to be included ?
There *is* no header file you can include *on Linux* to get that.
If you want to ensure that packets are flushed *on Linux* when a new
filter is installed, then you will have to find out what call *on Linux*
can be used to discard all unread input on a socket, *if* there is such
a call. I would suggest asking, say, the linux-net mailing list about
this.
If there isn't, you would have to determine if there's some call
specific to the PF_PACKET sockets that libpcap uses that can discard all
unread input. Again, you should probably ask the linux-net mailing list
about this.
If there isn't any such call, you're probably out of luck.
-
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