inet_ntoa

Jan Willem Knopper jwk@stack.nl
Sat, 1 Jul 2000 09:40:42 +0200 (CEST)


> 	Hello!
> 
> 	Is there any function that works as 'char *inet_ntoa(struct in_addr
> in);' but with IPv6 addresses (struct in6_addr)?
> 
> 	(I'm interested in Linux version)
It is stated in RFC 2133 section 6.5:

int inet_pton(int af, const char *src, void *dst);

const char *inet_ntop(int af, const void *src,
		char *dst, size_t size);

(for documentation read that RFC, 
	ftp://ftp.ipv6.org/pub/rfc/rfc2133.txt)

Jan Willem

P.S. Is this on topic here ?