diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2016-05-01 21:48:55 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2016-05-01 21:48:55 +0000 |
commit | ec70917ffad285039e533a5334e73e253d2ee289 (patch) | |
tree | fb83dcefc2682b80bf43ff446482a5b7b31c2ccb /sys/netinet6/sctp6_usrreq.c | |
parent | 71a53e69d65ecf61a175e8d6ccf153d6a031279b (diff) | |
download | src-ec70917ffad285039e533a5334e73e253d2ee289.tar.gz src-ec70917ffad285039e533a5334e73e253d2ee289.zip |
When a client uses UDP encapsulation and lists IP addresses in the INIT
chunk, enable UDP encapsulation for all those addresses.
This helps clients using a userland stack to support multihoming if
they are not behind a NAT.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=298902
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index 3439f7eacb7e..647107d3ea2c 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -919,7 +919,9 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p) return (EALREADY); } /* We are GOOD to go */ - stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id, inp->sctp_ep.pre_open_stream_count, p); + stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id, + inp->sctp_ep.pre_open_stream_count, + inp->sctp_ep.port, p); SCTP_ASOC_CREATE_UNLOCK(inp); if (stcb == NULL) { /* Gak! no memory */ |