mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
Handle PPPoPTY correctly.
This commit is contained in:
parent
fda36f2fa5
commit
9acc846078
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54569
@ -113,6 +113,7 @@ tty_Timeout(void *data)
|
||||
log_Printf(LogWARN, "%s: Carrier ioctl not supported, "
|
||||
"using ``set cd off''\n", p->link.name);
|
||||
timer_Stop(&dev->Timer);
|
||||
dev->mbits = TIOCM_CD;
|
||||
return;
|
||||
}
|
||||
} else
|
||||
@ -188,8 +189,7 @@ tty_AwaitCarrier(struct physical *p)
|
||||
return CARRIER_PENDING; /* Not yet ! */
|
||||
}
|
||||
|
||||
return Online(dev) || !dev->dev.cd.necessity == CD_REQUIRED ?
|
||||
CARRIER_OK : CARRIER_LOST;
|
||||
return Online(dev) ? CARRIER_OK : CARRIER_LOST;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user