Re: inet_ntop
Re: inet_ntop
- Subject: Re: inet_ntop
- From: Quinn <email@hidden>
- Date: Tue, 3 Feb 2004 11:43:40 +0000
At 16:02 -0800 2/2/04, Eric Long wrote:
inet_ntop() does not appear to be available from within the kernel. Is
there another function exposed in the kernel to convert IPv6 addresses? I
just want to legibly display them in debugging info.
The TCP/IP stack does this with a routine called ip6_sprintf. This
routine /is/ listed in the list of supported BSD kernel routines
(xnu/config/BSDKernel.exports), from which I conclude that it will be
safe for you to use it in your KEXT. However, it's API is kinda
wonky (it relies on static storage for the string), so it may make
more sense to copy the code into your KEXT, change the routine name,
fix up the API, and proceed from there.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
References: | |
| >inet_ntop (From: Eric Long <email@hidden>) |