summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-18 19:07:13 +0000
committerbrian <brian@FreeBSD.org>2001-08-18 19:07:13 +0000
commitbf052a75557ab676fa35cf9c1ec4003794999685 (patch)
tree7970bc01f669a62400f33174cd77c70f50ce85a9 /usr.sbin/ppp/bundle.c
parent4a1bf71cd83111e13e0b6d30625186949667544d (diff)
downloadFreeBSD-src-bf052a75557ab676fa35cf9c1ec4003794999685.zip
FreeBSD-src-bf052a75557ab676fa35cf9c1ec4003794999685.tar.gz
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...
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 8f0863f..adf5257 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -555,7 +555,7 @@ bundle_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
}
af = ntohl(tun.header.family);
#ifndef NOINET6
- if (af != AF_INET && (!probe.ipv6_available || af != AF_INET6))
+ if (af != AF_INET && af != AF_INET6)
#else
if (af != AF_INET)
#endif
OpenPOWER on IntegriCloud