src/standard.c
int v6tov4(struct in_addr *sin_addr, struct in6_addr *sin6_addr)
{
	if (memcmp(sin6_addr->s6_addr, rfc4291_pfx, sizeof(rfc4291_pfx)) == 0) {
		memcpy(&(sin_addr->s_addr), &(sin6_addr->s6_addr[12]),
			sizeof(struct in_addr));
		return 1;
	}

	return 0;
}
/* Map IPv6 adress on IPv4 address, as specified in RFC 3513.
 * Return true if conversion is possible and false otherwise.
 */
Map IPv6 adress on IPv4 address, as specified in RFC 3513.
Return true if conversion is possible and false otherwise.
Map IPv6 adress on IPv4 address as specified in RFC 3513 . Return true if conversion is possible and false otherwise .
int v6tov4(struct in_addr *sin_addr, struct in6_addr *sin6_addr)
{
	if (memcmp(sin6_addr->s6_addr, rfc4291_pfx, sizeof(rfc4291_pfx)) == 0) {
		memcpy(&(sin_addr->s_addr), &(sin6_addr->s6_addr[12]),
			sizeof(struct in_addr));
		return 1;
	}
	return 0;
}
int v6tov4 ( struct in_addr * sin_addr , struct in6_addr * sin6_addr ) { if ( memcmp ( sin6_addr -> s6_addr , rfc4291_pfx , sizeof ( rfc4291_pfx ) ) == 0 ) { memcpy ( & ( sin_addr -> s_addr ) , & ( sin6_addr -> s6_addr [ 12 ] ) , sizeof ( struct in_addr ) ) ; return 1 ; } return 0 ; }
Map IPv6 adress on IPv4 address, as specified in RFC 3513.
Map IPv6 adress on IPv4 address as specified in RFC 3513 .