Re: sending MAC packets --- again, and again
From: Daniel Valencia (fetrovsky_at_yahoo.com)
Date: 05/21/05
- Previous message: Charles Swiger: "Re: sending MAC packets --- again, and again"
- Next in thread: Vaibhave Agarwal: "npxintr from nowhere"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 May 2005 11:06:42 -0700 (PDT) To: freebsd-net@freebsd.org
Hello
--- Charles Swiger <cswiger@mac.com> wrote:
> pcap_dispatch() will not
> necessarily
> return when the read times out; on some
> platforms, the read
> timeout
> isn't supported, and, on other platforms,
> the timer doesn't
> start until
> at least one packet arrives. This means
If I read this correctly, pcap will sometimes wait
forever until a packet appears, which I don't actually
mind because it's actually the behaviour that I'm
expecting. What is really odd is that even when
packets ARE arriving, pcap_loop just sits there, lets
the packets pile up, and then shows all the messages
at once... then it blocks again for a while, even as I
send messages from the other computer, just to show
them all at once again, and so on...
> you'll probably find yourself either going
> multithreaded or using
I'm actually going multithreaded, but I'd expect a
packet to show up immediately, so I can process it and
perform the routing in a timely manner, rather than
delivering a packet a minute after it was sent.
Thank you very much!
- Daniel
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Charles Swiger: "Re: sending MAC packets --- again, and again"
- Next in thread: Vaibhave Agarwal: "npxintr from nowhere"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|