• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inet_ntop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: inet_ntop
      • From: Eric Long <email@hidden>
References: 
 >inet_ntop (From: Eric Long <email@hidden>)

  • Prev by Date: Re: Accessing the terminal SSH rendezvous info
  • Next by Date: Scutil howto
  • Previous by thread: inet_ntop
  • Next by thread: Re: inet_ntop
  • Index(es):
    • Date
    • Thread