Re: Packet Socketing Equivalent in OS X?
Re: Packet Socketing Equivalent in OS X?
- Subject: Re: Packet Socketing Equivalent in OS X?
- From: Justin Walker <email@hidden>
- Date: Mon, 27 Dec 2004 20:17:04 -0800
On Dec 23, 2004, at 17:24, Paul Forgey wrote:
Does that mean this quote from the man page is in error?
A packet can be sent out on the network by writing to a bpf file
descrip-
tor. The writes are unbuffered, meaning only one packet can be
processed
per write. Currently, only writes to Ethernets and SLIP links
are sup-
ported.
As Jordan admitted (:-}), it is not in error. FWIW, you can find code
that uses BPF for reading and writing in the bootp project in the
Darwin repository (see <http://developer.apple.com/darwin>). Look for
IPConfiguration and bootplib.
I also have a need to write raw IP packets (as well as read them
independent of interface hardware). I'm finding that raw sockets do
not behave at all as documented. Is there a resource somewhere that
explains how they really work on Darwin/Mac-OS?
The best source is the source :-}. What are you trying to do, and what
isn't working (and what documents are you reading)?
Regards,
Justin
--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden