Hi!
Thank you for your answer!
After fixing the program to save the value of the
pcap_dispatch correctly, I found it to be -1.
After expanding the if block of FD_ISSET to include
the pcap_dispatch call :-) , I don't see this message
any more.
Yet, I don't see any packets. I do see packets
in Li
ury segal wrote:
After fixing the program to save the value of the
pcap_dispatch correctly, I found it to be -1.
After expanding the if block of FD_ISSET to include
the pcap_dispatch call :-) , I don't see this message
any more.
Yes - but, as I noted, there's a problem with select() on BPF in some
ury segal wrote:
Any idea what is wrong with my sample program ?
What's wrong with your sample program is that
1) it's using non-blocking I/O and select() with a timeout, and calling
"pcap_dispatch()" regardless of "select()" says input is available on
the pcap_t or not;
2) it's running
ury segal wrote:
The code runs on Solaris 8. Sorry for misinforming
you before.
The code that produces the message is:
if ( (packet_from_pcap= pcap_dispatch(pcpaph,
1,
_pcap_reader,
(u_ch
Hi,
I am trying to run this small sample program on
Solaris 2.8, using pcap 0.8.3 on solaris 8. All I get
when I run this is:
pcap_dispatch: Resource temporarily unavailable
every select timeout. In a gdb session I see that the
fd I got from get_selectable_fd is set, so I call
pcap_dispatch. T
Hi,
The code runs on Solaris 8. Sorry for misinforming
you before.
The code that produces the message is:
if ( (packet_from_pcap= pcap_dispatch(pcpaph,
1,
_pcap_reader,
(u_char *)this
On Apr 15, 2005, at 1:10 PM, ury segal wrote:
I have pcap_dispatch sometimes returning value <0 and
pcap_geterr printing "Resource temporarily
unavailable".
The pcap handler is non blocking
(pcap_setnonblock was called with 1), the fd was
found with pcap_get_selectable_fd, it was select()ed
on and
Hi,
I have pcap_dispatch sometimes returning value <0 and
pcap_geterr printing "Resource temporarily
unavailable".
The pcap handler is non blocking
(pcap_setnonblock was called with 1), the fd was
found with pcap_get_selectable_fd, it was select()ed
on and returned turned on. Yet pcap_dispatch
r