interger to I P address

Jeroen Massar jeroen at
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:


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:

and of course Eva's document at:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the NANOG mailing list