lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 8 Dec 2015 17:47:22 +0800
From:	<zyjzyj2000@...il.com>
To:	<vyasevich@...il.com>, <nhorman@...driver.com>,
	<linux-sctp@...r.kernel.org>, <netdev@...r.kernel.org>
CC:	<alexandre.dietsch@...driver.com>,
	<stefan.costandache@...driver.com>
Subject: [PATCH 1/1] net:sctp: disable to inform ULP about transition from PF to active state

From: yzhu1 <zyjzyj2000@...il.com>

This feature is introduced in the commit 5aa93bc "sctp: Implement
quick failover draft from tsvwg". This feature should be disabled
if the quick failover feature is disabled.

Signed-off-by: yzhu1 <zyjzyj2000@...il.com>
---
 net/sctp/associola.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 559afd0..7438625 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -795,7 +795,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
 		 * active state and set cwnd to 1 MTU, see SCTP
 		 * Quick failover draft section 5.1, point 5
 		 */
-		if (transport->state == SCTP_PF) {
+		if ((asoc->pf_retrans < asoc->max_retrans) && 
+			(transport->state == SCTP_PF)) {
 			ulp_notify = false;
 			transport->cwnd = asoc->pathmtu;
 		}
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ