Subject: Slip?
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: L Lundman <lundman@kauri.vuw.ac.nz>
List: netbsd-bugs
Date: 04/12/1994 10:13:52
Trying to set up slip to our netbsd box, we run the latest sliplogin.c
I could find but I get this error upon trying to login:

Apr 8 13:28:41 mu -sliplogin[1674]: ioctl(TIOCSETD): Inappropriate
ioctl for device


which ofcourse is cause by these lines:
	ldisc = SLIPDISC; if (ioctl(0, TIOCSETD, (caddr_t)&ldisc) < 0)
	{ 	syslog(LOG_ERR, "ioctl(TIOCSETD): %m");

and if I skip the exit(1) bit :) I get the: Apr 8 13:35:41 mu
-sliplogin[1717]: ioctl (SLIOCGUNIT): Inappropriate ioctl for device


and removing that exit(1) the whole thing just sits there :)

We have the following line for the kernel conf: pseudo-device sl 1


What are we doing wrong?

I've scanned the news groups for help and possibly an FAQ about slip
but no such luck, any info would be appreciative.

Kef

------------------------------------------------------------------------------