/* Initialize the control inode/socket with a control endpoint data structure. This endpoint is reserved exclusively for the OOTB processing.  */
static int sctp_ctl_sock_init(void)
/* Initialize the control inode/socket with a control endpoint data structure. This endpoint is reserved exclusively for the OOTB processing.  */
static int sctp_ctl_sock_init(void)
{
	int err;
	sa_family_t family = PF_INET;
	if (sctp_get_pf_specific(PF_INET6))
		family = PF_INET6;
	err = inet_ctl_sock_create(&sctp_ctl_sock, family,
				   SOCK_SEQPACKET, IPPROTO_SCTP, &init_net);
	if (err < 0 && family == PF_INET6)
		err = inet_ctl_sock_create(&sctp_ctl_sock, AF_INET,
					   SOCK_SEQPACKET, IPPROTO_SCTP,
					   &init_net);
	if (err < 0) {
		printk(KERN_ERR
		       "SCTP: Failed to create the SCTP control socket.\n");
		return err;
	}
	return 0;
}