Re: [tcpdump-workers] linux pcap blocking and cpu utilization

2004-06-28 Thread Guy Harris
On Jun 28, 2004, at 12:10 PM, four wrote: Here is the situation: I am trying to build a simple bridging program. If I use pcap_set_nonblock() the function call returns fine, but the program ends up using 100% cpu utilization, presumably because it is simply looping and returning with no packets c

[tcpdump-workers] linux pcap blocking and cpu utilization

2004-06-28 Thread four
Hello All, It seems the issue of linux timeouts and blocking has been discussed on this list before. The issue is that the pcap calls won't return after a timeout period on linux and some other operating systems. Here is the situation: I am trying to build a simple bridging program. If I use pc