site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com You might also consider ascii2addr() = Mike On Aug 10, 2005, at 12:01 PM, Allen Smith wrote: inet_aton? On Wednesday 10 August 2005 11:55 am, Allan Hoeltje wrote: -Allan This email sent to lazlor@bigboy.lotaris.org _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/drivers%40mu.org This email sent to drivers@mu.org _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... In any case, you don't want to be doing this inside the kernel. Prepare a sockaddr_t or similar in userland; this allows you to support resolution by name as well as address, which is a highly preferable behaviour. Is there a kernel or network utility function for converting a dotted "255.255.255.255" IP string address to unsigned long? I've searched with the proper buzz words but can't seem to find anything but I am sure I saw such a function in the literature somewhere. Sure, I can hack up a cool function using shifts and four calls to strtol but there must be a better way that is more efficient and accounts for endian issues. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/lazlor% 40bigboy.lotaris.org This email sent to site_archiver@lists.apple.com