Date: Tue, 17 Jun 1997 12:28:10 -0500 (CDT) From: dave adkins <adkin003@gold.tc.umn.edu> To: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= <max@wide.ad.jp> Cc: freebsd-current@FreeBSD.ORG Subject: Re: PPP on current Message-ID: <Pine.NEB.3.96.970617122612.24914B-100000@samthedog.gold.tc.umn.edu> In-Reply-To: <199706171606.BAA02070@mail.aslm.rim.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.970617122612.24914B-100000>