From owner-freebsd-bugs Wed Mar 8 02:39:38 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA21570 for bugs-outgoing; Wed, 8 Mar 1995 02:39:38 -0800 Received: from inet-gw-2.pa.dec.com (inet-gw-2.pa.dec.com [16.1.0.23]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id CAA21564; Wed, 8 Mar 1995 02:39:36 -0800 Received: from ilonet.ilo.dec.com by inet-gw-2.pa.dec.com (5.65/24Feb95) id AA05272; Wed, 8 Mar 95 02:34:35 -0800 Received: by ilonet.ilo.dec.com (5.65/MS-012594); id AA23807; Wed, 8 Mar 1995 10:36:34 GMT Received: (from dtynan@localhost) by corrib.ilo.dec.com (8.6.8/8.6.6) id KAA10197; Wed, 8 Mar 1995 10:34:22 GMT Date: Wed, 8 Mar 1995 10:34:22 GMT From: Dermot Tynan Message-Id: <199503081034.KAA10197@corrib.ilo.dec.com> To: jkh@FreeBSD.org, ponds!rivers@dg-rtp.dg.com, terry@cs.weber.edu Subject: Re: Bug. Cc: bugs@FreeBSD.org, dtynan@corrib.ilo.dec.com Sender: bugs-owner@FreeBSD.org Precedence: bulk > Yes - I'm in *exactly* that position (although, he says jealously, not > with ISDN, just SLIP.) > > I've been thinking about hacking shell scripts, etc... > > Another alternative is to simply set the modem to drop the line after > one minute of non-activity, which is what I had planned to do. > > Anyway - please send me your stuff... Well, I now have the thing running under FreeBSD-2.0 (SNAP 950210). I noticed an inconsistency in the SLIP/PPP network stuff in that the slip code keeps the byte count using sc_if.if_obytes (or something like that), whereas the PPP stuff has an entry in the sc structure along the lines of sc_bytessent. I added two new 'ioctls' to slip.h to return the bytes sent and the bytes received. I could probably have gone the same way as slstat but that required considerably more work and wasn't as clean an interface. Right now, slipd doesn't handle weird exceptions too well, and needs to be improved. Also, I want to use hylafax (aka flexfax) on the same line, and have an incoming getty, so I need to follow the UUCP convention for locking (not the greatest solution, as I remember). One other thing, slipd uses a library of mine called 'varlib'. All the stuff I write uses this library. It is a generic way of configuring applications and utilities, somewhat similar to the X-defaults stuff. The 'slipd' process reads a configuration file to determine the number to call, the login name and the password, as well as other things such as the decay algorithm, etc. The daemon is a long way from being a really general purpose utility, and has stuff hard-coded for Ireland Online. It was written purely for my own purposes. Anyway, when I iron out the remaining issues, I'll forward it to Jordan, who can throw it in the contrib section or something, along with varlib. - Der