Re: How to read/write raw ether packet in application?
Re: How to read/write raw ether packet in application?
- Subject: Re: How to read/write raw ether packet in application?
- From: Quinn <email@hidden>
- Date: Wed, 23 Aug 2006 13:17:33 +0100
At 23:00 -0700 21/8/06, Duane Murphy wrote:
The only "complication" is that opening a BPF or PF_NDRV socket requires
root access. There is a good example of how to transfer a socket from
one program to another so that your root tool only does one simple
action; open a socket and pass it back to the parent application.
The canonical sample for sending and receiving raw Ethernet packets
is BSDLLCTest. This includes the descriptor passing stuff that Duane
is referring to.
<http://developer.apple.com/samplecode/BSDLLCTest/index.html>
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden