Re: Packet Socketing Equivalent in OS X?
Re: Packet Socketing Equivalent in OS X?
- Subject: Re: Packet Socketing Equivalent in OS X?
- From: Ness <email@hidden>
- Date: Thu, 23 Dec 2004 19:43:10 -0800
Jordan Hubbard wrote:
I think I'll have to eat my words here (sorry, Ness). It looks like
you can indeed write to a bpf device - how about that, you learn
something new every day. I determined this by simply reading the
source code, and there is indeed a bpfwrite() routine declared in
bpf's cdevsw entry. Looks like it just whacks the data provided
right onto the network.
- Jordan
On Dec 23, 2004, at 5:24 PM, 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.
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?
On Dec 23, 2004, at 5:19 PM, Jordan Hubbard wrote:
On Dec 23, 2004, at 5:15 PM, Ness wrote:
opens successfully. PLEASE tell me I can write to BPF.
You cannot write to BPF.
Merry Christmas. :-)
- Jordan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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
--
Jordan K. Hubbard
Engineering Manager, BSD technology group
Apple Computer
_______________________________________________
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
Speaking of learning something new, I just found out you founded
FreeBSD. Please excuse my newbie-ishness, I am a Windows convert.
Thanks a lot guys.
ness
_______________________________________________
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