src/standard.c
int in_net_ipv6(struct in6_addr *addr, struct in6_addr *mask, struct in6_addr *net)
{
	int i;

	for (i = 0; i < sizeof(struct in6_addr) / sizeof(int); i++)
		if (((((int *)addr)[i] & ((int *)mask)[i])) !=
		    (((int *)net)[i] & ((int *)mask)[i]))
			return 0;
	return 1;
}
/* Return non-zero if IPv6 address is part of the network,
 * otherwise zero.
 */
Return non-zero if IPv6 address is part of the network,
otherwise zero.
Return non - zero if IPv6 address is part of the network otherwise zero .
int in_net_ipv6(struct in6_addr *addr, struct in6_addr *mask, struct in6_addr *net)
{
	int i;
	for (i = 0; i < sizeof(struct in6_addr) / sizeof(int); i++)
		if (((((int *)addr)[i] & ((int *)mask)[i])) !=
		    (((int *)net)[i] & ((int *)mask)[i]))
			return 0;
	return 1;
}
int in_net_ipv6 ( struct in6_addr * addr , struct in6_addr * mask , struct in6_addr * net ) { int i ; for ( i = 0 ; i < sizeof ( struct in6_addr ) / sizeof ( int ) ; i ++ ) if ( ( ( ( ( int * ) addr ) [ i ] & ( ( int * ) mask ) [ i ] ) ) != ( ( ( int * ) net ) [ i ] & ( ( int * ) mask ) [ i ] ) ) return 0 ; return 1 ; }
Return non-zero if IPv6 address is part of the network,
 otherwise zero.
Return non - zero if IPv6 address is part of the network otherwise zero .