interger to I P address

Jeroen Massar jeroen at unfix.org
Wed Aug 27 06:20:13 CDT 2008


Simon Lockhart wrote:
> On Wed Aug 27, 2008 at 07:11:41AM -0400, kcc wrote:
>> ls it possible t convert the interger to ip
> 
> Yes.

If you are using 128-bit integers, which according to some will also
change some day, thus one should be using "struct addrinfo" and:

getaddrinfo()
getnameinfo()

as those are the girlfriends of programmers.

Note that one should effectively avoid inet_pton/inet_ntop as they still
require the programmer to know about address families, the get*info()
ones ignore all those details.

Also see Itojun's (RIP :( ) excellent document at:
 http://www.kame.net/newsletter/19980604/

and of course Eva's document at:
 http://gsyc.escet.urjc.es/~eva/IPv6-web/ipv6.html

Greets,
 Jeroen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/20080827/f083a162/attachment.bin>


More information about the NANOG mailing list