473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

"Bad Address" error using recvfrom in cygwin



Hi,

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?

Thanks,

Jan

Jul 4 '08 #1
3 6080
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.

Jul 4 '08 #2
Antoninus Twink wrote:
) 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.

Or a pointer that isn't aligned properly, perhaps ?

) 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.

Agreed.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
Jul 4 '08 #3
On 4 Jul, 07:29, "jkvbe" <jkvbeNOS...@yahoo.comwrote:
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?
you posted to the wrong news group. recvfrom() is not a standard C
function
(that is is it does not appear in the C standard). Please repost in a
group
wher eit is more relevent. maybe a unix group or a cygwin group (the
answers
will be better as well).

--
Nick Keighley

Jul 4 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mange | last post by:
I'm using WebRequest class to access a PHP script, but keep getting a 400 error from the server when calling the GetResponse() method. I have added the url to the script in the bypass list in...
1
by: joemynz | last post by:
Help please with a URLError. Invoking a url that works in Firefox and IE results in a "urlerror 7, no address ..." in python. I need to debug why. Traceback is below. There's a redirect when the...
9
bonski
by: bonski | last post by:
hello everybody.. i just want to know what this error means... Error: mail() : SMTP server response: 501 #5.1.1 bad address the smtp set up was correct.. valid emails... and port. so im just...
4
by: floppyzedolfin | last post by:
Hello! I'm actually encoding an encryption / decryption program. The encryption programes takes a file path in parameter, and encrypts the contents of the file and stores that into another file. ...
0
by: =?Utf-8?B?bm9ubmI=?= | last post by:
Hi Have I missed something obvious, or is there no way to use the "BaseAddress" pattern in a WCF (.NET 3.0) client configuration file, similar to that offered on the WCF Server? IMHO this...
1
by: maikins | last post by:
I am new to SQL Server 2005. We have a membership managment console using an SQL datatbase and I would like to find out how to write a query or several queries that would bring back instances where...
16
by: lawrence k | last post by:
I've never before written a PHP script to run on my home Ubuntu machine (though I've written dozens of PHP cron jobs for my web server), so I thought I'd start off with a very simple test: ...
6
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a...
0
tharini
by: tharini | last post by:
Whenever i run my SMS API code,am getting the error " Bad Request HTTP Error 400.The Request is badly formed". When i store a particular mobile number in database and send sms to that mobile no.,the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.