sys/netinet/sctp_usrreq.c
static uint32_t
sctp_fill_user_address(struct sockaddr_storage *ss, struct sockaddr *sa)
{
	struct sockaddr_in6 lsa6;
	sa = (struct sockaddr *)sctp_recover_scope((struct sockaddr_in6 *)sa,
						   &lsa6);
	memcpy(ss, sa, sa->sa_len);
	return (0);
}
/*
 * copies a "user" presentable address and removes embedded scope, etc.
 * returns 0 on success, 1 on error
 */
copies a "user" presentable address and removes embedded scope, etc.
returns 0 on success, 1 on error
copies a " user " presentable address and removes embedded scope etc . returns 0 on success 1 on error
static uint32_t
sctp_fill_user_address(struct sockaddr_storage *ss, struct sockaddr *sa)
{
	struct sockaddr_in6 lsa6;
	sa = (struct sockaddr *)sctp_recover_scope((struct sockaddr_in6 *)sa,
						   &lsa6);
	memcpy(ss, sa, sa->sa_len);
	return (0);
}
static uint32_t sctp_fill_user_address ( struct sockaddr_storage * ss , struct sockaddr * sa ) { struct sockaddr_in6 lsa6 ; sa = ( struct sockaddr * ) sctp_recover_scope ( ( struct sockaddr_in6 * ) sa , & lsa6 ) ; memcpy ( ss , sa , sa -> sa_len ) ; return ( 0 ) ; }
copies a "user" presentable address and removes embedded scope, etc.
copies a " user " presentable address and removes embedded scope etc .