Article View: comp.sys.dec
Article #1083Re: How to dial out from DS3100
From: John T Kohl
Date: Thu, 29 Mar 1990 14:39
Date: Thu, 29 Mar 1990 14:39
95 lines
3840 bytes
3840 bytes
In article <1079@psych.stanford.edu> connie@psych.Stanford.EDU (Constance Stillinger) writes:
> >>>> I just don't have the faintest idea how to configure things
> to enable dial-INS, however. Anyone who has been able to do this,
> pleeeeze email me! <<<<
I have a modem (Telebit Trailblazer +) set up for dial in/out on my
machine. For dial-out, I use kermit, with some mods I added to do the
line sharing properly (attached are patches to ckutio.c, from C-Kermit,
4D(061) 8 Sep 86). Just do
set line /dev/ttyd0
set baud xxxx
connect
and dial away.
For dial-in, I modified /etc/gettytab to make an appropriate baud-rate loop
for autobauding incoming connections, but it sometimes doesn't work
quite right. I usually dial in at 9600bps, so it's usually not a
problem.
>>> WARNING: make sure your modem is silent (non-echoing, no ring
indication, etc), otherwise the getty process and the modem will have a
nice long chat, eating up CPU time.
My /etc/ttys line for the dialin/out is this:
ttyd0 "/etc/getty D9600" network on shared secure # modem line
(D9600 is my new entry in /etc/gettytab)
and the kermit patches (again, relative to C-Kermit 4D(061) 8 Sep 86)
*** /tmp/,RCSt1000726 Thu Mar 29 09:36:50 1990
--- ckutio.c Wed Sep 20 15:42:53 1989
***************
*** 377,389 ****
#ifdef NEWUUCP
acucntrl("disable",ttname); /* Open getty on line (4.3BSD) */
#endif
! #ifdef UXIII
/* if modem connection, don't wait for carrier */
ttyfd = open(ttname,O_RDWR | (modem ? O_NDELAY : 0) );
#else
ttyfd = open(ttname,2); /* Try to open for read/write */
#endif
!
if (ttyfd < 0) { /* If couldn't open, fail. */
perror(ttname);
return(-1);
--- 377,393 ----
#ifdef NEWUUCP
acucntrl("disable",ttname); /* Open getty on line (4.3BSD) */
#endif
! #ifdef ultrix
/* if modem connection, don't wait for carrier */
+ ttyfd = open(ttname,O_RDWR | O_BLKINUSE, 0 );
+ #else
+ #ifdef O_NDELAY
+ /* if modem connection, don't wait for carrier */
ttyfd = open(ttname,O_RDWR | (modem ? O_NDELAY : 0) );
#else
ttyfd = open(ttname,2); /* Try to open for read/write */
#endif
! #endif /* ultrix */
if (ttyfd < 0) { /* If couldn't open, fail. */
perror(ttname);
return(-1);
***************
*** 452,457 ****
--- 456,465 ----
/* Request exclusive access on systems that allow it. */
+ #ifdef ultrix
+ if (ioctl(ttyfd, TIOCSINUSE, 0) < 0)
+ fprintf(stderr,"Warning, problem getting inuse access\n");
+ #endif
#ifndef XENIX
/* Xenix exclusive access prevents open(close(...)) from working... */
#ifdef TIOCEXCL
***************
*** 489,494 ****
--- 497,506 ----
}
ttres(); /* Reset modes. */
/* Relinquish exclusive access if we might have had it... */
+ #ifdef ultrix
+ if (ioctl(ttyfd, TIOCCINUSE, 0) < 0)
+ fprintf(stderr,"Warning, problem relinquishing inuse access\n");
+ #endif
#ifndef XENIX
#ifdef TIOCEXCL
#ifdef TIOCNXCL
--
John Kohl <jtkohl@ATHENA.MIT.EDU> or <jtkohl@Kolvir.Brookline.MA.US>
Digital Equipment Corporation/Project Athena
(The above opinions are MINE. Don't put my words in somebody else's mouth!)
Technical Details
Message-ID:
<JTKOHL.90Mar29093929@lycus.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!bloom-beacon.mit.edu!jtkohlReferences:
<1079@psych.stanford.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!bloom-beacon.mit.edu!jtkohl From: jtkohl@MIT.EDU (John T Kohl) Newsgroups: comp.sys.dec,comp.sys.ultrix Subject: Re: How to dial out from DS3100 Message-ID: <JTKOHL.90Mar29093929@lycus.MIT.EDU> Date: 29 Mar 90 14:39:28 GMT References: <1079@psych.stanford.edu> Sender: news@athena.mit.edu (News system) Distribution: usa Organization: MIT Project Athena Lines: 95 In-Reply-To: connie@psych.Stanford.EDU's message of 29 Mar 90 01:15:24 GMT