summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-06-22 16:38:06 +0000
committertuexen <tuexen@FreeBSD.org>2014-06-22 16:38:06 +0000
commitd5831ca68c9363368857a52fbea709db33ea77b1 (patch)
treec0582d8dd2530d0a0a2bbf332e7f0630fbdf7926 /sys/netinet/sctp.h
parent493873a6efe2361a2d7d86dfb3bb29b3e72c5302 (diff)
downloadFreeBSD-src-d5831ca68c9363368857a52fbea709db33ea77b1.zip
FreeBSD-src-d5831ca68c9363368857a52fbea709db33ea77b1.tar.gz
MFC r264679:
Send the correct error cause, when a DATA chunk with no user data is received. This bug was reported by Irene Ruengeler.
Diffstat (limited to 'sys/netinet/sctp.h')
-rw-r--r--sys/netinet/sctp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/sctp.h b/sys/netinet/sctp.h
index 2f7f49b..4c5c03d 100644
--- a/sys/netinet/sctp.h
+++ b/sys/netinet/sctp.h
@@ -408,6 +408,11 @@ struct sctp_error_unrecognized_chunk {
struct sctp_chunkhdr ch;/* header from chunk in error */
} SCTP_PACKED;
+struct sctp_error_no_user_data {
+ struct sctp_error_cause cause; /* code=SCTP_CAUSE_NO_USER_DATA */
+ uint32_t tsn; /* TSN of the empty data chunk */
+} SCTP_PACKED;
+
/*
* Main SCTP chunk types we place these here so natd and f/w's in user land
* can find them.
OpenPOWER on IntegriCloud