summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_structs.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-12-04 14:41:48 +0000
committerrrs <rrs@FreeBSD.org>2007-12-04 14:41:48 +0000
commitf08a32ba977f8e5d918b36b60dfa44c4689e5c70 (patch)
tree73a7f50c36c6c2f08aa3230750a203cea99ecaf3 /sys/netinet/sctp_structs.h
parent6e65a1fee22566af28f40ffefd1c75abbae2db8c (diff)
downloadFreeBSD-src-f08a32ba977f8e5d918b36b60dfa44c4689e5c70.zip
FreeBSD-src-f08a32ba977f8e5d918b36b60dfa44c4689e5c70.tar.gz
- Found a problem in non-blocking sends. When
sending, once the locks are all unlocked to do the copy's in, its possible that other events could then raise the number of bytes outstanding pushing it so not all the message would fit. This would then cause us to send only part of the message. This fix makes it so we keep a "reserved" amount that can be kept in mind when making calculations to send. - rcv msg args with a NULL/NULL for to/tolen will return an error incorrectly for the 1-2-1 model. - We were not doing 0 len return correctly and not setting cantrcv more correctly. Previouly we "fixed" this area by taking out the socantrcv since we then could not get the data out. The correct rix is to still flag the socket but alow a by-pass route to continue to read until all data is consumed. MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_structs.h')
-rw-r--r--sys/netinet/sctp_structs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_structs.h b/sys/netinet/sctp_structs.h
index 1d145e2..69b6f92 100644
--- a/sys/netinet/sctp_structs.h
+++ b/sys/netinet/sctp_structs.h
@@ -800,6 +800,7 @@ struct sctp_association {
uint32_t total_output_queue_size;
uint32_t sb_cc; /* shadow of sb_cc */
+ uint32_t sb_send_resv; /* amount reserved on a send */
uint32_t my_rwnd_control_len; /* shadow of sb_mbcnt used for rwnd
* control */
/* 32 bit nonce stuff */
OpenPOWER on IntegriCloud