Cyril wrote:

And if the  system can't use select() *and* the packet capture mechanism
doesn't support a timeout ?

The only UN*X systems I know of where select() can't be used are

        FreeBSD 4.3 and 4.4 (due to BPF deficiencies fixed in 4.5);

OS X 10.4[.x] (due to select() not working on *any* character special files);

and, on both of them, the packet capture mechanism supports a timeout.

Linux and Irix should support it because they implement capturing with a socket, and select() is, as far as I know, implemented on the socket layer and works on all sockets. SunOS 4.x, SunOS 5.x, and HP-UX should support it because they implement capturing on STREAMS devices, and select(), as I remember, is implemented at the stream head layer and should work on all STREAMS devices. As I remember, I tried it on Digital UNIX and it worked; I haven't tried it on SunOS 3.x or earlier.

I don't remember whether I tried it on AIX; it *might* not work there.
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to