Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-19 Thread Marco De Angelis
-blocking mode to 0, expecting the call to pcap_dispatch to hang when packets are not collected. But instead, I can see many printouts (Read 0 packets) which indicate that the pcap_dispatch has exited when no packets are dispatched. So, is the non-blocking mode bugged, or am I understanding the mod

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-12 Thread Marco De Angelis
Guy Harris alum.mit.edu> writes: > Can you cut your application down to the smallest code > snippet that shows the problem, and send that to me? I managed to extrapolate the core. It's a little messy because of the many tests I made recently and the 80-chars line limitation, but it show the o

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-10 Thread Marco De Angelis
ould see that tcpdump is not performing any ioctl() call (nor any select() call). That still puzzles me, as tcpdump works perfecly. Thanks for the kind support, Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-10 Thread Marco De Angelis
Carter Bullard qosient.com> writes: > > Hey Marco, > This may help you if you are not doing it. It seemed to help me on > Snow Leopard. Carter, thank you so much! It works nicely with this addition. I understand that BIOCIMMEDIATE changes the behaviour and avoids bufferi

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-09 Thread Marco De Angelis
commands I can see "ps_recv" increase rapidly. Now, I don't know what "received" means (in userland? in kernel buffer?), but maybe you do :) Thanks, Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-03 Thread Marco De Angelis
Guy Harris alum.mit.edu> writes: > > some printout I could add before calling pcap_dispatch to see what's in the > > kernel buffer and what in the userland buffer? > > Yes, but you'd have to add it to libpcap. > > >> Is your program built as a 32-bit program or a 64-bit program? > > To summa

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-03 Thread Marco De Angelis
p, then I should be able to capture using the same filter. I just cannot understand what my code (posted earlier) is doing differently from tcpdump. Thanks for the support Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-01 Thread Marco De Angelis
he O.S.) worked fine, and also the one I downloaded and recompiled. I recompiled it just to be sure that they didn't do some "trick" to make it work. Maybe I just don't trust the Authority :) Regards, Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-02-01 Thread Marco De Angelis
that they didn't do some "trick" to make it work. Maybe I just don't trust the Authority :) Regards, Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

[tcpdump-workers] libpcap on Mac Os X 10.6 Snow Leopard

2010-01-31 Thread Marco De Angelis
t; error <"<"); RAISE_EXCEPTION_WITH_MSG(PacketCaptureSessionException, error); } ... Any idea that could point me in resolving the issue? Have you ever seen this behaviour before? The application works fine with all other O.S. which run older pcap versions. I recompiled tcpdump 4.0.0 on my machine, and it works! Therefore I shall be able to capture correctly. Best regards, Marco - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread marco
> And now my question is: > can tcpdump extract payloads from packets, or it just extracting headers? No, tcpdump by itself can't. But that's what tcpflow does. Regards, Marco. - This is the tcpdump-workers list. Visit https://cod.

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread marco
e/tcpflow/ Regards, Marco. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] Corrupt files

2004-06-25 Thread Marco van den Bovenkamp
ket>' should do it... -- Regards, Marco. - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.