Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/sctp_module.c
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#ifdef INET | #ifdef INET | ||||
extern struct domain inetdomain; | extern struct domain inetdomain; | ||||
struct protosw sctp_stream_protosw = { | struct protosw sctp_stream_protosw = { | ||||
.pr_type = SOCK_STREAM, | .pr_type = SOCK_STREAM, | ||||
.pr_domain = &inetdomain, | .pr_domain = &inetdomain, | ||||
.pr_protocol = IPPROTO_SCTP, | .pr_protocol = IPPROTO_SCTP, | ||||
.pr_flags = PR_CONNREQUIRED|PR_WANTRCVD|PR_LASTHDR, | .pr_flags = PR_CONNREQUIRED|PR_WANTRCVD, | ||||
.pr_input = sctp_input, | .pr_input = sctp_input, | ||||
.pr_ctlinput = sctp_ctlinput, | .pr_ctlinput = sctp_ctlinput, | ||||
.pr_ctloutput = sctp_ctloutput, | .pr_ctloutput = sctp_ctloutput, | ||||
.pr_drain = sctp_drain, | .pr_drain = sctp_drain, | ||||
.pr_usrreqs = &sctp_usrreqs, | .pr_usrreqs = &sctp_usrreqs, | ||||
}; | }; | ||||
struct protosw sctp_seqpacket_protosw = { | struct protosw sctp_seqpacket_protosw = { | ||||
.pr_type = SOCK_SEQPACKET, | .pr_type = SOCK_SEQPACKET, | ||||
.pr_domain = &inetdomain, | .pr_domain = &inetdomain, | ||||
.pr_protocol = IPPROTO_SCTP, | .pr_protocol = IPPROTO_SCTP, | ||||
.pr_flags = PR_WANTRCVD|PR_LASTHDR, | .pr_flags = PR_WANTRCVD, | ||||
.pr_input = sctp_input, | .pr_input = sctp_input, | ||||
.pr_ctlinput = sctp_ctlinput, | .pr_ctlinput = sctp_ctlinput, | ||||
.pr_ctloutput = sctp_ctloutput, | .pr_ctloutput = sctp_ctloutput, | ||||
.pr_drain = sctp_drain, | .pr_drain = sctp_drain, | ||||
.pr_usrreqs = &sctp_usrreqs, | .pr_usrreqs = &sctp_usrreqs, | ||||
}; | }; | ||||
#endif | #endif | ||||
#ifdef INET6 | #ifdef INET6 | ||||
extern struct domain inet6domain; | extern struct domain inet6domain; | ||||
struct protosw sctp6_stream_protosw = { | struct protosw sctp6_stream_protosw = { | ||||
.pr_type = SOCK_STREAM, | .pr_type = SOCK_STREAM, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_SCTP, | .pr_protocol = IPPROTO_SCTP, | ||||
.pr_flags = PR_CONNREQUIRED|PR_WANTRCVD|PR_LASTHDR, | .pr_flags = PR_CONNREQUIRED|PR_WANTRCVD, | ||||
.pr_input = sctp6_input, | .pr_input = sctp6_input, | ||||
.pr_ctlinput = sctp6_ctlinput, | .pr_ctlinput = sctp6_ctlinput, | ||||
.pr_ctloutput = sctp_ctloutput, | .pr_ctloutput = sctp_ctloutput, | ||||
.pr_drain = sctp_drain, | .pr_drain = sctp_drain, | ||||
.pr_usrreqs = &sctp6_usrreqs, | .pr_usrreqs = &sctp6_usrreqs, | ||||
}; | }; | ||||
struct protosw sctp6_seqpacket_protosw = { | struct protosw sctp6_seqpacket_protosw = { | ||||
.pr_type = SOCK_SEQPACKET, | .pr_type = SOCK_SEQPACKET, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_SCTP, | .pr_protocol = IPPROTO_SCTP, | ||||
.pr_flags = PR_WANTRCVD|PR_LASTHDR, | .pr_flags = PR_WANTRCVD, | ||||
.pr_input = sctp6_input, | .pr_input = sctp6_input, | ||||
.pr_ctlinput = sctp6_ctlinput, | .pr_ctlinput = sctp6_ctlinput, | ||||
.pr_ctloutput = sctp_ctloutput, | .pr_ctloutput = sctp_ctloutput, | ||||
#ifndef INET /* Do not call initialization and drain routines twice. */ | #ifndef INET /* Do not call initialization and drain routines twice. */ | ||||
.pr_drain = sctp_drain, | .pr_drain = sctp_drain, | ||||
#endif | #endif | ||||
.pr_usrreqs = &sctp6_usrreqs, | .pr_usrreqs = &sctp6_usrreqs, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |