summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ether.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-09 23:30:59 +0000
committerbrian <brian@FreeBSD.org>1999-11-09 23:30:59 +0000
commitd8b9f4c9fa7e2ab435fbd84a0584f941947e01fc (patch)
treeae1e05abc84ab38f3bae25a4d970fe487ab720da /usr.sbin/ppp/ether.c
parentf87b3817a2d1c9cce4910b3a14e946899a2632d7 (diff)
downloadFreeBSD-src-d8b9f4c9fa7e2ab435fbd84a0584f941947e01fc.zip
FreeBSD-src-d8b9f4c9fa7e2ab435fbd84a0584f941947e01fc.tar.gz
If dev->connected is already set to CARRIER_OK in ether_AwaitCarrier,
don't go and set it to CARRIER_LOST !
Diffstat (limited to 'usr.sbin/ppp/ether.c')
-rw-r--r--usr.sbin/ppp/ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c
index 175ba79..da20f9f 100644
--- a/usr.sbin/ppp/ether.c
+++ b/usr.sbin/ppp/ether.c
@@ -267,7 +267,7 @@ ether_AwaitCarrier(struct physical *p)
{
struct etherdevice *dev = device2ether(p->handler);
- if (!dev->timeout--)
+ if (dev->connected != CARRIER_OK && !dev->timeout--)
dev->connected = CARRIER_LOST;
else if (dev->connected == CARRIER_PENDING)
ether_MessageIn(dev);
OpenPOWER on IntegriCloud