diff options
author | tuexen <tuexen@FreeBSD.org> | 2013-02-11 21:02:49 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2013-02-11 21:02:49 +0000 |
commit | 3017e3b84b010d811c044638c09dba560241a30c (patch) | |
tree | 4ef7076c57ff0a374de0555abc254718bb199ad2 /sys/netinet/sctp_usrreq.c | |
parent | 3a9eeaa765cdfd3940dbf4b881957c057c6d6576 (diff) | |
download | FreeBSD-src-3017e3b84b010d811c044638c09dba560241a30c.zip FreeBSD-src-3017e3b84b010d811c044638c09dba560241a30c.tar.gz |
Send the adaptation layer indication only if set by the user.
MFC after: 3 days
Discussed with: rrs
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 5330df1..972ea23 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -4617,6 +4617,7 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize, SCTP_CHECK_AND_CAST(adap_bits, optval, struct sctp_setadaptation, optsize); SCTP_INP_WLOCK(inp); inp->sctp_ep.adaptation_layer_indicator = adap_bits->ssb_adaptation_ind; + inp->sctp_ep.adaptation_layer_indicator_provided = 1; SCTP_INP_WUNLOCK(inp); break; } |