Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2016 03:51:05 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r308714 - stable/11/usr.sbin/traceroute6
Message-ID:  <201611160351.uAG3p572023045@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Wed Nov 16 03:51:05 2016
New Revision: 308714
URL: https://svnweb.freebsd.org/changeset/base/308714

Log:
  MFC r308347:
  
    Fix an infinite loop at an non-responding hop when other echo replies
    are kept arriving in the waittime time window.
  
    Submitted by: Denny Page
    PR:           210286

Modified:
  stable/11/usr.sbin/traceroute6/traceroute6.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/traceroute6/traceroute6.c
==============================================================================
--- stable/11/usr.sbin/traceroute6/traceroute6.c	Wed Nov 16 03:24:20 2016	(r308713)
+++ stable/11/usr.sbin/traceroute6/traceroute6.c	Wed Nov 16 03:51:05 2016	(r308714)
@@ -955,6 +955,9 @@ main(argc, argv)
 						break;
 					}
 					break;
+				} else if (deltaT(&t1, &t2) > waittime * 1000) {
+					cc = 0;
+					break;
 				}
 			}
 			if (cc == 0)



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