Return to BSD News archive
Xref: sserve comp.sys.sun.misc:4408 comp.unix.bsd:7417 comp.protocols.misc:1939
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!think.com!ames!olivea!bu.edu!nntp-read!joshua5
From: joshua5@csa.bu.edu (Jim Peters)
Newsgroups: comp.sys.sun.misc,comp.unix.bsd,comp.protocols.misc
Subject: Porting Dialupip 2.0 to Sun OS 4.1.1
Message-ID: <JOSHUA5.92Nov3134614@csa.bu.edu>
Date: 3 Nov 92 18:46:14 GMT
Sender: news@bu.edu
Reply-To: joshua5@cs.bu.edu
Followup-To: comp.sys.sun.misc
Organization: Boston Univ., Computer Science
Lines: 37
I am trying to port the Dialup IP 2.0 package by Rich Salz and John Curran
to Sun OS 4.1.1. The installation instructions were written for Sun OS
3.5. I need help translating the following into 4.1.1:
5. The ``du'' line discipline must be added to the termi-
nal driver. On Ultrix, change to the /sys/data direc-
tory and edit tty_conf_data.c On a Sun, the file is
tty_conf.c in the /sys/sys directory. Look for the
linesw variable, and add the following declarations
before it:
#include "du.h"
#if NDU > 0
int dutopen(), dutclose(), dutinput(), dutioctl(), dutstart(), dutmodem(
);
#endif /* NDU > 0*/
Next add these routines into the dispatch table. You
should use the next available line discipline number,
shown below as 8:
#if NDU > 0
dutopen, dutclose, nodev, nodev, dutioctl,
dutinput, nodev, nulldev, dutstart, dutmodem, /* 8 DUDISC */
#else
nodev, nodev, nodev, nodev, nodev,
nodev, nodev, nodev, nodev, nodev,
#endif /* NDU */
I haven't been able to find any hint of line dispatch table. The only
references to linesw are in sys/bk.h.
Thanks in advance.
-- Jim Peters