From owner-cvs-all Sat Aug 18 12: 7:19 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8B5AC37B40A; Sat, 18 Aug 2001 12:07:13 -0700 (PDT) (envelope-from brian@FreeBSD.org) Received: (from brian@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7IJ7Ds18226; Sat, 18 Aug 2001 12:07:13 -0700 (PDT) (envelope-from brian) Message-Id: <200108181907.f7IJ7Ds18226@freefall.freebsd.org> From: Brian Somers Date: Sat, 18 Aug 2001 12:07:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ppp bundle.c command.c fsm.c ip.c ipv6cp.c ncp.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG brian 2001/08/18 12:07:13 PDT Modified files: usr.sbin/ppp bundle.c command.c fsm.c ip.c ipv6cp.c ncp.c Log: Back out the previous fix to deal with kernels that don't support IPv6, and implement a far more subtle and correct fix. The reason behind the infinite loop was that ppp was trying to make up initial IPv6 numbers and wasn't giving up when it failed unexpectedly to assign the addresses it just fabricated to it's interface (thinking that the reason was because another interface was using the same address). It now attempts this up to 100 times before just failing and trying to muddle along (in reality, this should never happen more than a couple of times unless our random number generator doesn't work). Also, when IPv6 is not available, don't even try to assign the IPv6 interface address in the first place... Revision Changes Path 1.122 +2 -2 src/usr.sbin/ppp/bundle.c 1.273 +10 -21 src/usr.sbin/ppp/command.c 1.61 +2 -3 src/usr.sbin/ppp/fsm.c 1.97 +2 -3 src/usr.sbin/ppp/ip.c 1.4 +13 -12 src/usr.sbin/ppp/ipv6cp.c 1.3 +21 -34 src/usr.sbin/ppp/ncp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message