• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error code -3200 (OS X)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Error code -3200 (OS X)? (From: Joe Kelly <email@hidden>)

  • Prev by Date: Re: Error code -3200 (OS X)?
  • Next by Date: MoreSCF1.0d3 and root privilege
  • Previous by thread: Re: Error code -3200 (OS X)?
  • Next by thread: MoreSCF1.0d3 and root privilege
  • Index(es):
    • Date
    • Thread