FreeBSD/sys/netinet6/in6.c
/*
 * Fill in basic IPv6 address request info.
 */
Fill in basic IPv6 address request info.
Fill in basic IPv6 address request info .
void
in6_prepare_ifra(struct in6_aliasreq *ifra, const struct in6_addr *addr,
    const struct in6_addr *mask)
{
	memset(ifra, 0, sizeof(struct in6_aliasreq));
	ifra->ifra_addr.sin6_family = AF_INET6;
	ifra->ifra_addr.sin6_len = sizeof(struct sockaddr_in6);
	if (addr != NULL)
		ifra->ifra_addr.sin6_addr = *addr;
	ifra->ifra_prefixmask.sin6_family = AF_INET6;
	ifra->ifra_prefixmask.sin6_len = sizeof(struct sockaddr_in6);
	if (mask != NULL)
		ifra->ifra_prefixmask.sin6_addr = *mask;
}
void in6_prepare_ifra ( struct in6_aliasreq * ifra , const struct in6_addr * addr , const struct in6_addr * mask ) { memset ( ifra , 0 , sizeof ( struct in6_aliasreq ) ) ; ifra -> ifra_addr . sin6_family = AF_INET6 ; ifra -> ifra_addr . sin6_len = sizeof ( struct sockaddr_in6 ) ; if ( addr != NULL ) ifra -> ifra_addr . sin6_addr = * addr ; ifra -> ifra_prefixmask . sin6_family = AF_INET6 ; ifra -> ifra_prefixmask . sin6_len = sizeof ( struct sockaddr_in6 ) ; if ( mask != NULL ) ifra -> ifra_prefixmask . sin6_addr = * mask ; }
Fill in basic IPv6 address request info.
Fill in basic IPv6 address request info .