From owner-freebsd-current Tue Jun 17 10:31:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA24749 for current-outgoing; Tue, 17 Jun 1997 10:31:21 -0700 (PDT) Received: from mhub1.tc.umn.edu (0@mhub1.tc.umn.edu [128.101.131.51]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA24737 for ; Tue, 17 Jun 1997 10:31:10 -0700 (PDT) Received: from gold.tc.umn.edu by mhub1.tc.umn.edu; Tue, 17 Jun 97 12:30:50 -0500 Received: from pub-23-c-219.dialup.umn.edu by gold.tc.umn.edu; Tue, 17 Jun 97 12:30:47 -0500 Date: Tue, 17 Jun 1997 12:28:10 -0500 (CDT) From: dave adkins To: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= cc: freebsd-current@FreeBSD.ORG Subject: Re: PPP on current In-Reply-To: <199706171606.BAA02070@mail.aslm.rim.or.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 18 Jun 1997, Masafumi NAKANE/[ISO-2022-JP] 中根雅文 wrote: > I'm running -current as of about 10 hours ago. > > As I updated my system, PPP stop wroking properly. It connects to the > provider, get address from them without problem. But, it looks like > it has some problem with (or I have some problem in my configuration > regarding) the manipulation of routing table. > > I've changed .ppp.conf and .ppp.linkup in many different ways, but > couldn't find out what I'm doing wrong. I can't even generalize the > problem, though, PPP succeeds in connecting to the ISP and establish > the link, so that I can telnet, ftp or whatever to outside world if > it's the first time after the reboot or after doing ``route flush''. > > The relevant part of my ~/.ppp.conf is: > > set ifaddr 192.168.1.1/0 192.168.1.2/0 255.255.255.0 > delete ALL > add 0 0 192.168.1.2 > > And .ppp.linkup is: > MYADDR: > delete ALL > add 0 0 HISADDR > > Could anyone suggest what I'm doing wrong? These settings have been > working until I updated PPP today, BTW. > > Thanks, > Max > > I have the same problem. As of about 1997-06-10 ppp doesn't seem to remove the default route. With log tcp/ip enabled the write in OsSetRoute fails on the delete command. Have there been any changes to ppp that would require changes to ppp.conf to delete the default route? A change to route.c that seems to fix the problem for me is: --- route.c.orig Tue Jun 17 07:45:47 1997 +++ route.c Tue Jun 17 07:28:36 1997 @@ -74,6 +74,7 @@ rtmes.m_rtm.rtm_version = RTM_VERSION; rtmes.m_rtm.rtm_type = cmd; rtmes.m_rtm.rtm_addrs = RTA_DST | RTA_NETMASK | RTA_GATEWAY; + if (cmd == RTM_DELETE) rtmes.m_rtm.rtm_addrs &= ~RTA_GATEWAY; rtmes.m_rtm.rtm_seq = ++seqno; rtmes.m_rtm.rtm_pid = getpid(); rtmes.m_rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; This is from route.c v1.13. It seems that RTM_DELETE doesn't work for default if the addrs is declared as a gateway. dave adkins