diff options
author | brian <brian@FreeBSD.org> | 1999-11-26 22:44:33 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-26 22:44:33 +0000 |
commit | f0003f34563b650e7d94531962fc8f09b2a5f5ec (patch) | |
tree | 32e3392d0d02f834be36bca1b87a8e39b935837e /usr.sbin/ppp/udp.c | |
parent | 9e78c04cff601ba0a8897f3dc1b3740190596105 (diff) | |
download | FreeBSD-src-f0003f34563b650e7d94531962fc8f09b2a5f5ec.zip FreeBSD-src-f0003f34563b650e7d94531962fc8f09b2a5f5ec.tar.gz |
Change ``set cd'' so that its default value is device specific. The
default is still 1 second for ttys, but is now 6 seconds for i4b (ISDN)
devices and 5 seconds for ethernet (PPPoE) devices.
Diffstat (limited to 'usr.sbin/ppp/udp.c')
-rw-r--r-- | usr.sbin/ppp/udp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ppp/udp.c b/usr.sbin/ppp/udp.c index d7a2228..9260003 100644 --- a/usr.sbin/ppp/udp.c +++ b/usr.sbin/ppp/udp.c @@ -132,6 +132,7 @@ udp_device2iov(struct device *d, struct iovec *iov, int *niov, static const struct device baseudpdevice = { UDP_DEVICE, "udp", + { CD_NOTREQUIRED, 0 }, NULL, NULL, NULL, @@ -282,6 +283,8 @@ udp_Create(struct physical *p) if (dev) { memcpy(&dev->dev, &baseudpdevice, sizeof dev->dev); physical_SetupStack(p, dev->dev.name, PHYSICAL_FORCE_SYNC); + if (p->cfg.cd.necessity != CD_DEFAULT) + log_Printf(LogWARN, "Carrier settings ignored\n"); return &dev->dev; } |