Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2015 17:48:44 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284384 - head/sys/netinet
Message-ID:  <201506141748.t5EHmiv8030391@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Jun 14 17:48:44 2015
New Revision: 284384
URL: https://svnweb.freebsd.org/changeset/base/284384

Log:
  Stop the heartbeat timer when removing a net.
  Thanks to the reporter of
  https://code.google.com/p/sctp-refimpl/issues/detail?id=14
  for reporting the issue.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_var.h

Modified: head/sys/netinet/sctp_var.h
==============================================================================
--- head/sys/netinet/sctp_var.h	Sun Jun 14 16:31:06 2015	(r284383)
+++ head/sys/netinet/sctp_var.h	Sun Jun 14 17:48:44 2015	(r284384)
@@ -178,6 +178,7 @@ extern struct pr_usrreqs sctp_usrreqs;
 		if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&(__net)->ref_count)) { \
 			(void)SCTP_OS_TIMER_STOP(&(__net)->rxt_timer.timer); \
 			(void)SCTP_OS_TIMER_STOP(&(__net)->pmtu_timer.timer); \
+			(void)SCTP_OS_TIMER_STOP(&(__net)->hb_timer.timer); \
 			if ((__net)->ro.ro_rt) { \
 				RTFREE((__net)->ro.ro_rt); \
 				(__net)->ro.ro_rt = NULL; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506141748.t5EHmiv8030391>