diff options
author | brian <brian@FreeBSD.org> | 1999-05-24 16:39:17 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-05-24 16:39:17 +0000 |
commit | c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3 (patch) | |
tree | b8be473b5d7c5052d1cbdeb29b649e908e467308 /usr.sbin/ppp/tty.c | |
parent | 96fd7bde688afba4d5ecad71cff2b31f875067b3 (diff) | |
download | FreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.zip FreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.tar.gz |
Correct the ``ignoring sync/async'' warnings so that they show
up with the correct device type.
Reassign the correct tcpdevice or execdevice after transfering
a link in MP server mode.
Diffstat (limited to 'usr.sbin/ppp/tty.c')
-rw-r--r-- | usr.sbin/ppp/tty.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c index 37024b6..e8ace57 100644 --- a/usr.sbin/ppp/tty.c +++ b/usr.sbin/ppp/tty.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty.c,v 1.5 1999/05/16 11:58:48 brian Exp $ + * $Id: tty.c,v 1.6 1999/05/18 01:37:46 brian Exp $ */ #include <sys/param.h> @@ -324,15 +324,12 @@ tty_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, int maxiov) { if (type == TTY_DEVICE) { - struct ttydevice *dev; + struct ttydevice *dev = (struct ttydevice *)iov[(*niov)++].iov_base; - /* It's one of ours ! Let's create the device */ - - dev = (struct ttydevice *)iov[(*niov)++].iov_base; /* Refresh function pointers etc */ memcpy(&dev->dev, &basettydevice, sizeof dev->dev); - physical_SetupStack(p, PHYSICAL_NOFORCE); + physical_SetupStack(p, dev->dev.name, PHYSICAL_NOFORCE); if (dev->Timer.state != TIMER_STOPPED) { dev->Timer.state = TIMER_STOPPED; tty_StartTimer(p); @@ -432,7 +429,7 @@ tty_Create(struct physical *p) } else fcntl(p->fd, F_SETFL, oldflag & ~O_NONBLOCK); - physical_SetupStack(p, PHYSICAL_NOFORCE); + physical_SetupStack(p, dev->dev.name, PHYSICAL_NOFORCE); return &dev->dev; } |