/* Requests that the local endpoint set the specified Adaptation Layer Indication parameter for all future INIT and INIT-ACK exchanges.  */
static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len, char __user *optval, int __user *optlen)
/* Requests that the local endpoint set the specified Adaptation Layer Indication parameter for all future INIT and INIT-ACK exchanges.  */
static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len, char __user *optval, int __user *optlen)
{
	struct sctp_setadaptation adaptation;
	if (len < sizeof(struct sctp_setadaptation))
		return -EINVAL;
	len = sizeof(struct sctp_setadaptation);
	adaptation.ssb_adaptation_ind = sctp_sk(sk)->adaptation_ind;
	if (put_user(len, optlen))
		return -EFAULT;
	if (copy_to_user(optval, &adaptation, len))
		return -EFAULT;
	return 0;
}