From owner-freebsd-bugs Fri Jun 20 06:00:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA01473 for bugs-outgoing; Fri, 20 Jun 1997 06:00:06 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA01425; Fri, 20 Jun 1997 06:00:02 -0700 (PDT) Resent-Date: Fri, 20 Jun 1997 06:00:02 -0700 (PDT) Resent-Message-Id: <199706201300.GAA01425@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, marquard@zilker.net Received: from localhost.zilker.net (jump-k56flex-0086.jumpnet.com [207.8.6.86]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA01256 for ; Fri, 20 Jun 1997 05:57:05 -0700 (PDT) Received: (from marquard@localhost) by localhost.zilker.net (8.8.5/8.8.3) id HAA03479; Fri, 20 Jun 1997 07:55:47 -0500 (CDT) Message-Id: <199706201255.HAA03479@localhost.zilker.net> Date: Fri, 20 Jun 1997 07:55:47 -0500 (CDT) From: Dave Marquardt Reply-To: marquard@zilker.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/3913: ppp's "delete ALL" doesn't work Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3913 >Category: bin >Synopsis: "delete ALL" command of /usr/sbin/ppp doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 20 06:00:01 PDT 1997 >Last-Modified: >Originator: Dave Marquardt >Organization: None >Release: FreeBSD 2.2-STABLE i386 >Environment: Packard-Bell 75 MHz Pentium USR 28.8K internal modem >Description: Usually I just use one configuration of PPP to call my ISP. However, I wanted to dial up work, so I ran a different configuration. I noticed that it connected but wouldn't talk. Looking at the route table, I noticed that it still had old routes from my ISP dialin. I'd never noticed this when I ran /usr/sbin/ppp on 2.1.0 all the way up to 2.1.6, and this is the first time I've tried this with 2.2-STABLE. Here's the configuration from my /etc/ppp/ppp.conf: default: set afilter 0 permit 0/0 0/0 set dfilter 0 permit 0/0 0/0 set ifilter 0 permit 0/0 0/0 set ofilter 0 permit 0/0 0/0 set device /dev/cuaa0 set speed 38400 # disable lqr # deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" advantis: set log phase chat lcp set phone 4274031 set login "" set ifaddr 32.225.40.139/0 204.146.240.17/0 delete ALL add 0 0 204.146.240.17 accept pap deny chap disable chap set authname XXXXXXXXXXXXXXXXXXXXX set authkey XXXXXXX set openmode active set accmap 0xffffffff deny lqr disable lqr deny pred1 disable pred1 Here's what the route table shows after I execute "ppp -auto advantis". Notice that the routes don't seem to be right. ppp ON localhost> show route default 204.238.120.28 ffffffff UG (2) 127.0.0.1 127.0.0.1 ffffffff UH (3) 198.252.182.129 204.238.120.28 ffffffff UGH (2) 204.146.240.17 32.225.40.139 ffffffff UH (2) 204.238.120.4 204.238.120.28 ffffffff UGH (2) 204.238.120.5 204.238.120.28 ffffffff UGH (2) "delete ALL" has no effect. "delete 0 204.238.120.28" gives me this: ppp ON localhost> delete 0 204.238.120.28 ppp ON localhost> show route 127.0.0.1 127.0.0.1 ffffffff UH (3) 204.146.240.17 32.225.40.139 ffffffff UH (2) I haven't done enough debugging to figure out if this is PPP or something gone awry in the routing subsystem in the kernel. >How-To-Repeat: Run "ppp -auto remote1". Connect to it. Kill it. Run "ppp -auto remote2". Note that the route table still has lots of routes pointing to remote1's remote address. >Fix: One workaround, for me at least, is to flush the routing table with "route flush" between kill the first ppp session and starting the second. This would probably be inadequate for folks that have other network interfaces beyond a single PPP connection. >Audit-Trail: >Unformatted: