Re: Error code -3200 (OS X)?
Re: Error code -3200 (OS X)?
- Subject: Re: Error code -3200 (OS X)?
- From: Duane Murphy <email@hidden>
- Date: Tue, 5 Feb 2002 19:11:45 -0800
--- At Tue, 5 Feb 2002 17:58:57 -0800, Joe Kelly wrote:
>
I am preparing to do a synchronous ping (ala OTPingSample), but
>
OTOpenEndpointInContext() is returning -3200.
>
>
*ep = OTOpenEndpointInContext(OTCreateConfiguration(kRawIPName), 0, nil,
>
&err, mOTContext);
>
>
What's -3200 mean, and how to remedy?
If you are OS X then this is likely a permissions error. OS X has unix
networking security. Part of this security is that low numbered (well
known) IP sockets (< 1024) are protected and required root privilege in
order to run. Also Raw Ethernet requires root privilege for the same
reasons. Basically anything that can do damage to a network is protected.
If all you are doing is trying to run a sample application then you can
use the "sudo" from the terminal or use some of the other privilege
raising applications.
Alternatively you can can setuid to root on the application to have it
run as root.
For a "commercial" application there are several alternatives that can be
investigated for this situation. Apple promised several months ago to
publish guidelines for just these kinds of situations. I dont know if
they have been published yet.
...Duane