Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/sctp6_usrreq.c
Show First 20 Lines • Show All 545 Lines • ▼ Show 20 Lines | |||||
#ifdef INET | #ifdef INET | ||||
/* | /* | ||||
* XXX: ugly!! IPv4 TTL initialization is necessary for an IPv6 | * XXX: ugly!! IPv4 TTL initialization is necessary for an IPv6 | ||||
* socket as well, because the socket may be bound to an IPv6 | * socket as well, because the socket may be bound to an IPv6 | ||||
* wildcard address, which may match an IPv4-mapped IPv6 address. | * wildcard address, which may match an IPv4-mapped IPv6 address. | ||||
*/ | */ | ||||
inp6->inp_ip_ttl = MODULE_GLOBAL(ip_defttl); | inp6->inp_ip_ttl = MODULE_GLOBAL(ip_defttl); | ||||
#endif | #endif | ||||
/* | |||||
* Hmm what about the IPSEC stuff that is missing here but in | |||||
* sctp_attach()? | |||||
*/ | |||||
SCTP_INP_WUNLOCK(inp); | SCTP_INP_WUNLOCK(inp); | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
sctp6_bind(struct socket *so, struct sockaddr *addr, struct thread *p) | sctp6_bind(struct socket *so, struct sockaddr *addr, struct thread *p) | ||||
{ | { | ||||
struct sctp_inpcb *inp; | struct sctp_inpcb *inp; | ||||
▲ Show 20 Lines • Show All 625 Lines • Show Last 20 Lines |