From lewiz@netcom.com  Fri Mar 28 23:33:50 1997
Received: from rgate.metricom.com (rgate.metricom.com [204.179.107.3])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA14682
          for <freebsd-gnats-submit@FreeBSD.ORG>; Fri, 28 Mar 1997 23:33:50 -0800 (PST)
Received: from lew-payne (mg128-008.ricochet.net [204.179.128.8]) by rgate.metricom.com (8.7.6/8.7.3) with SMTP id XAA12784; Fri, 28 Mar 1997 23:33:25 -0800 (PST)
Message-Id: <199703290733.XAA12784@rgate.metricom.com>
Date: Fri, 28 Mar 1997 23:33:25 -0800 (PST)
From: Lew Payne <lewiz@netcom.com>
To: Bruce Evans <bde@zeta.org.au>
Cc: <freebsd-gnats-submit@FreeBSD.ORG>
In-Reply-To: <199703290109.MAA18869@godzilla.zeta.org.au>
Subject: Re[2]: misc/3133: TIOCSETD error with Cyclades 8Yo
References: <199703290109.MAA18869@godzilla.zeta.org.au>

>Number:         3138
>Category:       junk
>Synopsis:       Re[2]: misc/3133: TIOCSETD error with Cyclades 8Yo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 28 23:40:01 PST 1997
>Closed-Date:    Sat Mar 29 12:47:58 PST 1997
>Last-Modified:  Tue Nov 27 19:23:49 PST 2001
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Mar 29 12:47:58 PST 1997 
State-Changed-Why:  
Misfiled PR. 
>Unformatted:
Recently, you (Bruce Evans) wrote:
> >Using kernel-mode PPP.  Modems are attached to the Cyclades 8Yo.
> >PPPD is running on the modem ports.  The first connection works fine.
> >When another person dials in, ppp session cannot be established:
> >Mar 28 10:13:43 lpp pppd[222]: ioctl(TIOCSETD): Device not configured
> 
> Looks like you only have one PPP device (`pseudo-device ppp 1'
> in the kernel config file).

Bingo... yes!  I'm still learning, and didn't realize there was more
needed than just /dev entries.  Thank you for your advice!  I would
appreciate your advice on the following related topic, if you may:

I want my dial-ups to be ppp primarily.  As a result, I don't run getty
on them.  Instead, I invoke pppd from rc.local.  Upon normal termination
of the ppp connection, ip-down is invoked with the following:

    #  Wait for exiting process to settle down
    sleep 5
    #  Restart the daemon
    /usr/sbin/pppd $2 $3

That's fine, except for cases where the connection was unsuccessful (bad
username, password, etc).  Then pppd just dies.  As a result, I have a
15-minute cron job that respawns pppd on that port.  Ugly.  Very ugly.

Is there a simple way I can get pppd to re-invoke itself each time?
I'll modify the source, if I have to (I didn't install all sources on
my system), but isn't there an easier way?

Also, the pppd "login" and "logout" messages are very handy, but they
come bundled with the other "debug" messages.  Is there a way I can
get just those?  Well, as always, give me some pointers and I'll go
a long way.  Thanks again.

