From f0003f34563b650e7d94531962fc8f09b2a5f5ec Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 26 Nov 1999 22:44:33 +0000 Subject: 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. --- usr.sbin/ppp/udp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/ppp/udp.c') 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; } -- cgit v1.1