Re: "enet" Configuration problem
Re: "enet" Configuration problem
- Subject: Re: "enet" Configuration problem
- From: Duane Murphy <email@hidden>
- Date: Thu, 4 Apr 2002 08:34:46 -0800
Also, to follow-up on Quinn's answer, raw ethernet ports are a privileged
resource. You have to be authorized as root to open one.
I would highly suggest getting your hands on "Unix Network Programming"
by Richard Stevens. You'll need to know all you can about networking in
Unix to use raw ethernet.
One of the important things that Stevens talks about is transfering
sockets (endpoints) from one process to another. This is a good solution
to the authorization problem. An authorized process can be run to open a
socket and then pass that back to the parent process. This keeps the
authorized process processing to a minimum reducing potential security
breaches.
I havent seen the DTS example, so I dont know if it goes into all of
these areas.
Good luck,
...Duane
--- At Thu, 4 Apr 2002 15:13:23 +0100, Quinn wrote:
>
At 13:06 +0000 4/4/02, Mark Hunt wrote:
>
>I need to port a 9.x application to OSX, which uses an obscure
>
>Ethernet transport protocol, and a multicast Ethernet address.
>
>
>
>[...]
>
>
>
>kEnetName, etc, are still listed in the OT headers, so why don't they work?
>
>
The types of endpoints supported by Mac OS X's Open Transport
>
compatibility library is spellt out in the Carbon spec.
>
>
<http://developer.apple.com/techpubs/macosx/Carbon/CarbonSpecification/
>
Open_Transport.html>
>
>
>* TCP, UDP and Raw IP Endpoints
>
>* TCP/IP Services Provider and TCP/IP Mapper Provider (i.e. DNR protocol)
>
>* DDP endpoints
>
>* AppleTalk Services Providers and AppleTalk Mappers (i.e. ZIP and
>
>NBP protocols)
>
>* OT/PPP endpoints
>
>
Ethernet endpoints aren't supported, hence your problem opening one.
>
>
>Anyone know where I go from here?
>
>
To send and receive raw Ethernet packets you have to use a variety of
>
low-level BSD APIs. DTS has a sample for this, but I don't think
>
it's up on the web site yet. If you write to <email@hidden> we can
>
send a copy your way for free.
--
Duane Murphy
Efficient Networks, Inc.
<
http://www.efficient.com/>
_______________________________________________
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.