summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-04-23 20:45:31 +0000
committertuexen <tuexen@FreeBSD.org>2012-04-23 20:45:31 +0000
commit0c449daeb1fd6df66cbf69cc18ca9b3d603a6d8b (patch)
treefaa8ad63c133ae1fe79f82e0655a0fa14c4b45a0 /sys/netinet/sctputil.c
parent49c340ad69c8d3be822d196104a52063fbe7f500 (diff)
downloadFreeBSD-src-0c449daeb1fd6df66cbf69cc18ca9b3d603a6d8b.zip
FreeBSD-src-0c449daeb1fd6df66cbf69cc18ca9b3d603a6d8b.tar.gz
Use the flags defined in RFC 6525 in the stream reset event.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index bbc999c..b3fe728 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -3498,18 +3498,18 @@ sctp_ulp_notify(uint32_t notification, struct sctp_tcb *stcb,
case SCTP_NOTIFY_HB_RESP:
break;
case SCTP_NOTIFY_STR_RESET_SEND:
- sctp_notify_stream_reset(stcb, error, ((uint16_t *) data), SCTP_STREAM_RESET_INCOMING);
+ sctp_notify_stream_reset(stcb, error, ((uint16_t *) data), SCTP_STREAM_RESET_OUTGOING_SSN);
break;
case SCTP_NOTIFY_STR_RESET_RECV:
- sctp_notify_stream_reset(stcb, error, ((uint16_t *) data), SCTP_STREAM_RESET_OUTGOING);
+ sctp_notify_stream_reset(stcb, error, ((uint16_t *) data), SCTP_STREAM_RESET_INCOMING);
break;
case SCTP_NOTIFY_STR_RESET_FAILED_OUT:
sctp_notify_stream_reset(stcb, error, ((uint16_t *) data),
- (SCTP_STREAM_RESET_OUTGOING | SCTP_STREAM_RESET_INCOMING));
+ (SCTP_STREAM_RESET_OUTGOING_SSN | SCTP_STREAM_RESET_FAILED));
break;
case SCTP_NOTIFY_STR_RESET_FAILED_IN:
sctp_notify_stream_reset(stcb, error, ((uint16_t *) data),
- (SCTP_STREAM_RESET_OUTGOING | SCTP_STREAM_RESET_INCOMING));
+ (SCTP_STREAM_RESET_INCOMING | SCTP_STREAM_RESET_FAILED));
break;
case SCTP_NOTIFY_ASCONF_ADD_IP:
sctp_notify_peer_addr_change(stcb, SCTP_ADDR_ADDED, data,
OpenPOWER on IntegriCloud