diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2014-08-04 20:07:35 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2014-08-04 20:07:35 +0000 |
commit | 317e00ef863d88f89a17d10ce24031e1a0eac010 (patch) | |
tree | a943ca14889fa90564a6d1f712a78e122a1aaefd /sys/netinet/sctp_input.c | |
parent | 76504ce978eb237d4fb5512ce9fc30209135665c (diff) | |
download | src-317e00ef863d88f89a17d10ce24031e1a0eac010.tar.gz src-317e00ef863d88f89a17d10ce24031e1a0eac010.zip |
Add support for the SCTP_RECONFIG_SUPPORTED and the corresponding
sysctl controlling the negotiation of the RE-CONFIG extension.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=269527
Diffstat (limited to 'sys/netinet/sctp_input.c')
-rw-r--r-- | sys/netinet/sctp_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index b7f533a60f9b..ba624ba93292 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -2787,6 +2787,7 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset, inp->sctp_cmt_on_off = (*inp_p)->sctp_cmt_on_off; inp->ecn_supported = (*inp_p)->ecn_supported; inp->prsctp_supported = (*inp_p)->prsctp_supported; + inp->reconfig_supported = (*inp_p)->reconfig_supported; inp->nrsack_supported = (*inp_p)->nrsack_supported; inp->pktdrop_supported = (*inp_p)->pktdrop_supported; inp->partial_delivery_point = (*inp_p)->partial_delivery_point; @@ -5389,13 +5390,13 @@ process_control_chunks: *offset = length; return (NULL); } - if (stcb->asoc.peer_supports_strreset == 0) { + if (stcb->asoc.reconfig_supported == 0) { /* * hmm, peer should have announced this, but * we will turn it on since he is sending us * a stream reset. */ - stcb->asoc.peer_supports_strreset = 1; + stcb->asoc.reconfig_supported = 1; } if (sctp_handle_stream_reset(stcb, m, *offset, ch)) { /* stop processing */ |