• 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: Josh Graessley <email@hidden>
  • Date: Tue, 05 Feb 2002 18:39:23 -0800

My guess is that you aren't running as root. ICMP requires root, this is
probably a permission error. There is no good solution for this. If you're a
mach-o app, your can make your app setuid, but this is bad because all of
your app runs as root. If you have any flaws in your code, they may be
exploited to gain root access. If your app is CFM, there is no solution.

If you move to the socket APIs, you can do some tricks like creating another
app that just allocates an raw ip socket and passes it to your application.
You then use the security framework to run the helper app privileged.

-josh

On 2/5/02 5:58 PM, "Joe Kelly" <email@hidden> 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?
>
> joe
> _______________________________________________
> macnetworkprog mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/macnetworkprog
> Do not post admin requests to the list. They will be ignored.


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

  • Prev by Date: Error code -3200 (OS X)?
  • Next by Date: Re: Error code -3200 (OS X)?
  • Previous by thread: Error code -3200 (OS X)?
  • Next by thread: Re: Error code -3200 (OS X)?
  • Index(es):
    • Date
    • Thread