FreeBSD/sys/netinet6/scope6.c
/*
 * Extracts scope from adddress @dst, stores cleared address
 * inside @dst and zone inside @scopeid
 */
Extracts scope from adddress @dst, stores cleared address
inside @dst and zone inside @scopeid
Extracts scope from adddress @dst stores cleared address inside @dst and zone inside @scopeid
void
in6_splitscope(const struct in6_addr *src, struct in6_addr *dst,
    uint32_t *scopeid)
{
	uint32_t zoneid;
	*dst = *src;
	zoneid = ntohs(in6_getscope(dst));
	in6_clearscope(dst);
	*scopeid = zoneid;
}
void in6_splitscope ( const struct in6_addr * src , struct in6_addr * dst , uint32_t * scopeid ) { uint32_t zoneid ; * dst = * src ; zoneid = ntohs ( in6_getscope ( dst ) ) ; in6_clearscope ( dst ) ; * scopeid = zoneid ; }
Extracts scope from adddress @dst, stores cleared address
 inside @dst and zone inside @scopeid
Extracts scope from adddress @dst stores cleared address inside @dst and zone inside @scopeid