Re: Packet Socketing Equivalent in OS X?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 23, 2004, at 17:24, Paul Forgey wrote: Does that mean this quote from the man page is in error? 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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)? This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker