*BSD News Article 29122


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!comp.vuw.ac.nz!lundman
From: lundman@kauri.vuw.ac.nz (L Lundman)
Newsgroups: comp.os.386bsd.questions
Subject: SLIPLOGIN ioctl errors for NetBSD:
Date: 08 Apr 1994 00:35:21 GMT
Organization: Disorganised.
Lines: 34
Distribution: world
Message-ID: <LUNDMAN.94Apr8133522@kauri.kauri.vuw.ac.nz>
NNTP-Posting-Host: kauri.vuw.ac.nz


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?

ANy reply would be appreciated,

Kef
--
-------------------------------------------------------------------------------
Jorgen Lundman         eMail: lundman@kauri.vuw.ac.nz, lundman@rata.vuw.ac.nz.
8 Atua Street          My thoughts are my own and not VUW's..
Johnsonville,wgtn      "The reason people get lost in thought is because it's
New Zealand            such an unfamiliar territory" : (Unknown)
Phone: +64 4 782 724 (GMT+11 hrs)