[tcpdump-workers] User-space bridge on Solaris?

2008-09-19 Thread Ben Greear
I noticed that pcap_setdirection doesn't appear to work on Solaris. Anyone know if it would be possible to get this functionality implemented? Without this, it is very difficult (and not efficient even if possible) to write software to bridge two interfaces in Solaris. Thanks, Ben -

Re: [tcpdump-workers] User-space bridge on Solaris?

2008-09-20 Thread Ben Greear
Guy Harris wrote: On Sep 19, 2008, at 8:16 PM, Ben Greear wrote: I noticed that pcap_setdirection doesn't appear to work on Solaris. Anyone know if it would be possible to get this functionality implemented? Libpcap runs atop DLPI in Solaris. In my experience with at least one ve

Re: [tcpdump-workers] libpcap & poll()

2008-11-13 Thread Ben Greear
eadable? If you set the descriptor to non-blocking mode, you can read as many as are available each loop... Thanks, Ben Thanks, Aaron -- Ben Greear <[EMAIL PROTECTED]> Candela Technologies Inc http://www.candelatech.com - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap & poll()

2008-11-13 Thread Ben Greear
Aaron Turner wrote: On Thu, Nov 13, 2008 at 1:34 PM, Ben Greear <[EMAIL PROTECTED]> wrote: Aaron Turner wrote: I've been told by an end user under Linux 2.6.x at least that, he's seeing very high CPU utilization numbers with tcpbridge which uses libpcap to read packets. Sound

Re: [tcpdump-workers] libpcap & poll()

2008-11-13 Thread Ben Greear
Eloy Paris wrote: Hi Ben, On Thu, Nov 13, 2008 at 03:13:05PM -0800, Ben Greear wrote: [...] The code above works on Solaris, but does not work on Windows since there is nothing to poll() on windows. Windows has select() but it is my understanding that you can't use it on a packet ca

Re: [tcpdump-workers] libpcap & poll()

2008-11-13 Thread Ben Greear
to read/write on Linux, however. To see the program's behaviour, I'd also 'strace' it. That will show system calls and their return values. It's usually easy to see a busy spin this way... Thanks, Ben -- Ben Greear <[EMAIL PROTECTED]> Candela Technologies Inc http://www.candelatech.com - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap & poll()

2008-11-13 Thread Ben Greear
Aaron Turner wrote: On Thu, Nov 13, 2008 at 8:15 PM, Ben Greear <[EMAIL PROTECTED]> wrote: I guess you have some way of knowing you are reading a packet you just wrote so that you don't do this in a loop? Yep. Basically it's a software bridge (two interfaces, copying

Re: [tcpdump-workers] libpcap & poll()

2008-11-14 Thread Ben Greear
I am running the threads & resend pkt to self on a socket so I can select in the main loop. We just tell customers to use something other than Windows for high speed, and that seems to be good enough these days... Thanks, Ben -- Ben Greear <[EMAIL PROTECTED]> Candela Technologies Inc h

Re: [tcpdump-workers] libpcap capture performance drop

2011-05-27 Thread Ben Greear
hernet packet. Might want to add an extra 4 bytes for a possible VLAN header too. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.