Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6_proto.c
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | #define IP6PROTOSPACER \ | ||||
.pr_usrreqs = &nousrreqs \ | .pr_usrreqs = &nousrreqs \ | ||||
} | } | ||||
struct protosw inet6sw[] = { | struct protosw inet6sw[] = { | ||||
{ | { | ||||
.pr_type = 0, | .pr_type = 0, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_IPV6, | .pr_protocol = IPPROTO_IPV6, | ||||
.pr_flags = PR_CAPATTACH, | |||||
.pr_init = ip6_init, | .pr_init = ip6_init, | ||||
.pr_slowtimo = frag6_slowtimo, | .pr_slowtimo = frag6_slowtimo, | ||||
.pr_drain = frag6_drain, | .pr_drain = frag6_drain, | ||||
.pr_usrreqs = &nousrreqs, | .pr_usrreqs = &nousrreqs, | ||||
}, | }, | ||||
{ | { | ||||
.pr_type = SOCK_DGRAM, | .pr_type = SOCK_DGRAM, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_UDP, | .pr_protocol = IPPROTO_UDP, | ||||
.pr_flags = PR_ATOMIC|PR_ADDR, | .pr_flags = PR_ATOMIC|PR_ADDR|PR_CAPATTACH, | ||||
.pr_input = udp6_input, | .pr_input = udp6_input, | ||||
.pr_ctlinput = udp6_ctlinput, | .pr_ctlinput = udp6_ctlinput, | ||||
.pr_ctloutput = ip6_ctloutput, | .pr_ctloutput = ip6_ctloutput, | ||||
#ifndef INET /* Do not call initialization twice. */ | #ifndef INET /* Do not call initialization twice. */ | ||||
.pr_init = udp_init, | .pr_init = udp_init, | ||||
#endif | #endif | ||||
.pr_usrreqs = &udp6_usrreqs, | .pr_usrreqs = &udp6_usrreqs, | ||||
}, | }, | ||||
{ | { | ||||
.pr_type = SOCK_STREAM, | .pr_type = SOCK_STREAM, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_TCP, | .pr_protocol = IPPROTO_TCP, | ||||
.pr_flags = PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD|PR_LISTEN, | .pr_flags = PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD| | ||||
PR_LISTEN|PR_CAPATTACH, | |||||
.pr_input = tcp6_input, | .pr_input = tcp6_input, | ||||
.pr_ctlinput = tcp6_ctlinput, | .pr_ctlinput = tcp6_ctlinput, | ||||
.pr_ctloutput = tcp_ctloutput, | .pr_ctloutput = tcp_ctloutput, | ||||
#ifndef INET /* don't call initialization, timeout, and drain routines twice */ | #ifndef INET /* don't call initialization, timeout, and drain routines twice */ | ||||
.pr_init = tcp_init, | .pr_init = tcp_init, | ||||
.pr_slowtimo = tcp_slowtimo, | .pr_slowtimo = tcp_slowtimo, | ||||
.pr_drain = tcp_drain, | .pr_drain = tcp_drain, | ||||
#endif | #endif | ||||
Show All 25 Lines | #endif | ||||
.pr_drain = NULL, /* Covered by the SOCK_SEQPACKET entry. */ | .pr_drain = NULL, /* Covered by the SOCK_SEQPACKET entry. */ | ||||
.pr_usrreqs = &sctp6_usrreqs | .pr_usrreqs = &sctp6_usrreqs | ||||
}, | }, | ||||
#endif /* SCTP */ | #endif /* SCTP */ | ||||
{ | { | ||||
.pr_type = SOCK_DGRAM, | .pr_type = SOCK_DGRAM, | ||||
.pr_domain = &inet6domain, | .pr_domain = &inet6domain, | ||||
.pr_protocol = IPPROTO_UDPLITE, | .pr_protocol = IPPROTO_UDPLITE, | ||||
.pr_flags = PR_ATOMIC|PR_ADDR, | .pr_flags = PR_ATOMIC|PR_ADDR|PR_CAPATTACH, | ||||
.pr_input = udp6_input, | .pr_input = udp6_input, | ||||
.pr_ctlinput = udplite6_ctlinput, | .pr_ctlinput = udplite6_ctlinput, | ||||
.pr_ctloutput = udp_ctloutput, | .pr_ctloutput = udp_ctloutput, | ||||
#ifndef INET /* Do not call initialization twice. */ | #ifndef INET /* Do not call initialization twice. */ | ||||
.pr_init = udplite_init, | .pr_init = udplite_init, | ||||
#endif | #endif | ||||
.pr_usrreqs = &udp6_usrreqs, | .pr_usrreqs = &udp6_usrreqs, | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |