From alk@pobox.com  Fri Aug  7 01:25:41 1998
Received: from pobox.com (port34.prairietech.net [208.141.230.111])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA26571
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Aug 1998 01:25:38 -0700 (PDT)
          (envelope-from alk@pobox.com)
Received: (from alk@localhost) by pobox.com (8.8.8/8.7.3) id DAA18766; Fri, 7 Aug 1998 03:27:21 -0500 (CDT)
Message-Id: <199808070827.DAA18766@pobox.com>
Date: Fri, 7 Aug 1998 03:27:21 -0500 (CDT)
From: alk@pobox.com
Reply-To: alk@pobox.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: rcmds fail under recent /usr/sbin/ppp
X-Send-Pr-Version: 3.2

>Number:         7515
>Category:       bin
>Synopsis:       rcmds fail under recent /usr/sbin/ppp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug  7 01:30:00 PDT 1998
>Closed-Date:    Fri Aug 7 03:06:42 PDT 1998
>Last-Modified:  Sun Aug  9 02:15:49 PDT 1998
>Originator:     Tony Kimball
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Dis
>Environment:

	Current, from at least 15 Jul through 5 Aug

>Description:

Using current ppp with aliasing, rcmds fail.

Nota Bene:
  If I 'cd usr.sbin/ppp;cvs update -D 'June 21' .;make install', then
  the problem goes away.

>How-To-Repeat:

; cat /etc/ppp/ppp.conf
default:
 allow users alk
 load ptech

basic:
 allow users alk
 accept chap
 accept pap
 disable chap
 disable pap
 alias enable yes
 set mtu 1500
 set server /tmp/ppp ********
 set log +connect +phase 

ptech:
 allow users alk
 load basic
 set authname alk
 set authkey ********
 set phone 7397050
 set login "TIMEOUT 15 Session"
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATY0 OK ATDT\\T TIMEOUT 45 CONNECT"
 set device /dev/cuaa0
 set redial 5 2
 set speed 115200
 set timeout 0

ptech2:
 allow users alk
 load ptech
 set phone 7367388

dial:
 allow users alk
 load ptech
 dial

#
# pilot servers
#

pnet:
 allow users alk
 set timeout 0
 enable proxy
 set device localhost:6999
 set ifaddr 172.24.0.1 192.168.0.7

pcom:
 allow users alk
 set timeout 0
 enable proxy
 set speed 9600
 set device /dev/cuaa1
 set ifaddr 172.16.0.1 192.168.0.7
; ppp
Working in interactive mode
Using interface: tun0
ppp ON compound> dial

[then try:]

; rsh somehost.org date
select: protocol failure in circuit setup

[i.e /usr/src/lib/libc/net/rcmd.c:176]

>Fix:
	
whoops, time's up.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Fri Aug 7 03:06:42 PDT 1998 
State-Changed-Why:  
This is not a bug. Search the freebsd-hackers archive for the text 
"rsh and ppp" or "protocol failure in circuit setup". 
>Unformatted:
Fixed (main.c 1.142).  The problem was that PacketAliasInit() wasn't
being called (since I removed the dynamic libalias loading stuff).
