Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ipv6, ntohl

456 views
Skip to first unread message

Sébastien Peterson

unread,
Dec 2, 2001, 12:16:58 PM12/2/01
to
Hy,
I'm looking for the way to convert an ipv6 adress from network to host
order. Seems I can't use ntohl that takes a 32 bit argument... Is there
an equivalent function for ipv6??
That would do some help.(not only ntohl but also all the ipv4 dedicated
functions).
Thanks,

Sebastien Peterson
Student at ULG, Liège Belgium.

James Carlson

unread,
Dec 3, 2001, 7:13:27 AM12/3/01
to
Sébastien Peterson <seb.pe...@easynet.be> writes:
> I'm looking for the way to convert an ipv6 adress from network to host
> order. Seems I can't use ntohl that takes a 32 bit argument... Is there
> an equivalent function for ipv6?? =

No ... but why would you do that? Are you working on a system with
native 128 bit integers ... ? What math would you do on an IPv6
address?

> That would do some help.(not only ntohl but also all the ipv4 dedicated
> functions).

Such as what? getipnodebyname()?

--
James Carlson, Solaris Networking <james.d...@east.sun.com>
SUN Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677

0 new messages