From owner-freebsd-questions Thu Feb 7 7: 5: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dexter.starfire.mn.org (starfire.skypoint.net [199.199.159.71]) by hub.freebsd.org (Postfix) with ESMTP id 3ACD337B41E for ; Thu, 7 Feb 2002 07:04:32 -0800 (PST) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id g17F4UV63992 for questions@freebsd.org; Thu, 7 Feb 2002 09:04:30 -0600 (CST) (envelope-from john) Date: Thu, 7 Feb 2002 09:04:30 -0600 From: John To: questions@freebsd.org Subject: PPP support in getty -- how to use it? Message-ID: <20020207090430.A63977@dexter.starfire.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG *** I am not currently subscribed -- please include me in replies! *** I tried sending the following message regarding the recognition of PPP connections via getty to the e-mail addresses given in the source code, but neither address seems to work. Can someone point me in the right direction? Thanks! ----- Forwarded message from John ----- Date: Thu, 7 Feb 2002 08:50:10 -0600 From: John To: michaelh@cet.co.jp, eriko@wrq.com Cc: John Subject: PPP support in getty -- how to use it? User-Agent: Mutt/1.2.5.1i When I went to port my PPP recognition state engine from my FreeBSD 2.1 system to FreeBSD 4.3, I was surprised to find that similar code was already there. Like my code, this is virtually undocumented with no mention in the program man page, no examples of how to use it, and only a passing reference in the gettytab documentation and none in gettytab itself. While my scheme invoked pppd directly with "-detach" and "auth", relying on the "pap-secrets" and "chap-secrets" files in /etc/ppp, this version wants to exec a program defined in gettytab via the 'pp' value with the first parameter of "ppplogin". I can't find anything on such a program! How is this intended to be used? Can I create an exec script or C shim that invokes pppd with -detach and auth, define that in gettytab with pp, and be off to the races? I could hack my exec in place of the ppplogin exec, but I like your more elegant approach (though I wonder at not doing a basename of the executable path as the first parameter in the execs) and would like to reduce (or eliminate!) the number of hacks I need to make to a system as I upgrade. Can you point me to some documentation? Thank you most kindly! ----- End forwarded message ----- *** I am not currently subscribed -- please include me in replies! *** -- John Lind john@starfire.MN.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message