svn commit: r321292 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Jul 20 14:50:15 UTC 2017


Author: tuexen
Date: Thu Jul 20 14:50:13 2017
New Revision: 321292
URL: https://svnweb.freebsd.org/changeset/base/321292

Log:
  Deal with listening socket correctly.

Modified:
  head/sys/netinet/sctp_os_bsd.h

Modified: head/sys/netinet/sctp_os_bsd.h
==============================================================================
--- head/sys/netinet/sctp_os_bsd.h	Thu Jul 20 11:37:02 2017	(r321291)
+++ head/sys/netinet/sctp_os_bsd.h	Thu Jul 20 14:50:13 2017	(r321292)
@@ -392,8 +392,8 @@ typedef struct callout sctp_os_timer_t;
 	(sb).sb_mb = NULL;	\
 	(sb).sb_mbcnt = 0;
 
-#define SCTP_SB_LIMIT_RCV(so) so->so_rcv.sb_hiwat
-#define SCTP_SB_LIMIT_SND(so) so->so_snd.sb_hiwat
+#define SCTP_SB_LIMIT_RCV(so) (SOLISTENING(so) ? so->sol_sbrcv_hiwat : so->so_rcv.sb_hiwat)
+#define SCTP_SB_LIMIT_SND(so) (SOLISTENING(so) ? so->sol_sbsnd_hiwat : so->so_snd.sb_hiwat)
 
 /*
  * routes, output, etc.


More information about the svn-src-head mailing list