Re: Raw Ethernet, OT, and OS X
Re: Raw Ethernet, OT, and OS X
- Subject: Re: Raw Ethernet, OT, and OS X
- From: Rich Kubota <email@hidden>
- Date: Tue, 29 Jul 2003 10:37:12 -0700
At 9:46 AM -0700 7/29/03, Duane Murphy wrote:
We have several applications from OS 9 that use raw ethernet endpoints in
OpenTransport. We would like to move these applications to OS X.
We know that raw ethernet ports are privileged in OS X. We are
considering building privileged tools using our OpenTransport code.
The question is, will this work? does OpenTransport on OS X support raw
ethernet endpoints provided that the application is privileged.
Duane,
Unfortunately, OT under X does not provide raw ethernet support. In
order to open a raw ethernet endpoint, you need to open a PF_NDRV
socket. There's an example of doing so on the DTS web site.
<
http://developer.apple.com/samplecode/Sample_Code/Networking/BSDLLCTest.htm>
This sample includes an updated MoreAuthSample version which
demonstrates how to create a helper tool to get the privileged
PF_NDRV socket for you.
The use of the PF_NDRV socket also means that you will have to modify
your code to use the socket API instead of OT.
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
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.