site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com - Jordan On Dec 23, 2004, at 5:24 PM, Paul Forgey wrote: Does that mean this quote from the man page is in error? On Dec 23, 2004, at 5:19 PM, Jordan Hubbard wrote: You cannot write to BPF. Merry Christmas. :-) - Jordan _______________________________________________ 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/jkh%40apple.com This email sent to jkh@apple.com -- 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. 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:15 PM, Ness wrote: opens successfully. PLEASE tell me I can write to BPF. _______________________________________________ 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/ paulf%40aphrodite.com This email sent to paulf@aphrodite.com This email sent to site_archiver@lists.apple.com