aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_var.h
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2022-05-23 14:09:23 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2022-05-23 14:09:23 +0000
commit5cebd8305afecad82f5d9628d8f7981d33559037 (patch)
tree10492baf8470b3af7fd14cc8be38505f66c14e31 /sys/netinet/sctp_var.h
parent2d896da92a2a4fd27abeafe04bd2aa1ff74856b8 (diff)
sctp: more sb_cc related cleanups
No functional change intended. It allows a simpler patch for PR 260116. MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_var.h')
-rw-r--r--sys/netinet/sctp_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h
index b45c4ac410f9..0f2d3d9c61d6 100644
--- a/sys/netinet/sctp_var.h
+++ b/sys/netinet/sctp_var.h
@@ -85,7 +85,7 @@ extern struct pr_usrreqs sctp_usrreqs;
#define sctp_sbspace(asoc, sb) ((long) ((sctp_maxspace(sb) > (asoc)->sb_cc) ? (sctp_maxspace(sb) - (asoc)->sb_cc) : 0))
-#define sctp_sbspace_failedmsgs(sb) ((long) ((sctp_maxspace(sb) > (sb)->sb_cc) ? (sctp_maxspace(sb) - (sb)->sb_cc) : 0))
+#define sctp_sbspace_failedmsgs(sb) ((long) ((sctp_maxspace(sb) > SCTP_SBAVAIL(sb)) ? (sctp_maxspace(sb) - SCTP_SBAVAIL(sb)) : 0))
#define sctp_sbspace_sub(a,b) (((a) > (b)) ? ((a) - (b)) : 0)