*BSD News Article 16816


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!uwm.edu!cs.utexas.edu!uunet!ihz.compuserve.com!sam
From: sam@csi.compuserve.com (Sam Neely)
Subject: Re: NetBSD:  How do you keep from dropping DTR with SLIP?
Message-ID: <C83o5L.4JH@csi.compuserve.com>
Organization: CompuServe Incorporated
References: <C7z2M9.H4y@csi.compuserve.com>
Date: Fri, 4 Jun 1993 13:58:32 GMT
Lines: 54

In article <C7z2M9.H4y@csi.compuserve.com> I write:
>What's the correct way to initiate a SLIP connection to a remote
>host?  The problem I am having is that as soon as I issue the
>slattach command, my comm port drops DTR which causes my
>modem to hang up.  (I have my modem set to hang up if DTR drops --
>AT&D3 on my Practical Peripherals 14400)  If I tell the modem to
>not hang up when DTR is dropped (AT&D0), the modem will not
>transmit or receive data after DTR is dropped.

Thanks to Chris Demetriou for pointing me to the updated sources on
sun-lamp.cs.berkeley.edu in the NetBSD-current archive.  After recompiling
slattach, everything works great!

For those of you who do not have access to FTP, here is the diff:

*** slattach.c.orig	Thu Apr  8 00:15:29 1993
--- slattach.c	Thu Jun  3 22:57:23 1993
***************
*** 58,64 ****
  
  #ifndef lint
  static char sccsid[] = "@(#)slattach.c	4.6 (Berkeley) 6/1/90";
! static char rcsid[] = "/b/source/CVS/src/sbin/slattach/slattach.c,v 1.4 1993/04/08 04:15:43 cgd Exp";
  #endif /* not lint */
  
  #include <sys/param.h>
--- 58,64 ----
  
  #ifndef lint
  static char sccsid[] = "@(#)slattach.c	4.6 (Berkeley) 6/1/90";
! static char rcsid[] = "/b/source/CVS/src/sbin/slattach/slattach.c,v 1.5 1993/04/28 23:13:37 cgd Exp";
  #endif /* not lint */
  
  #include <sys/param.h>
***************
*** 161,166 ****
--- 161,172 ----
  		close(fd);
  		exit(1);
  	}
+ 
+ 	if (ioctl(fd, TIOCSDTR) < 0) {
+                 perror("ioctl(TIOCSDTR)");
+                 close(fd);
+                 exit(1);
+         }
  
  	cfsetispeed(&tty, speed);
  	cfsetospeed(&tty, speed);
-- 
Sam Neely, CompuServe Incorporated                  +1 614 538 3718 (voice)
5000 Arlington Centre Blvd, Columbus, OH  43220     +1 614 457 0348 (FAX)
Electronic Mail:  InfoPlex: >CSI:SAM      Internet: sam@csi.compuserve.com
To err is human, to forgive is against company policy