[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inet_ntoa



> 	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 ?