On 4 Jul 2008 at 6:29, jkvbe wrote:
I get a "Bad address" error message when trying to receive an ICMP timestamp
packet using recvfrom in cygwin. The packet is OK as I see it arriving when
sniffing the network.
Any ideas what can be wrong?
Bad address means you've passed the function memory you don't own. How
that's happened is impossible to guess without seeing your code - why
not post a short snippet showing how you're calling the function? Or,
double-check that the buffer and from address really exist somewhere in
memory, and that you've passed their sizes correctly.