From owner-freebsd-stable Sat Mar 3 19:16:45 2001 Delivered-To: freebsd-stable@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id AB39737B71B for ; Sat, 3 Mar 2001 19:16:38 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f243ESi30731; Sat, 3 Mar 2001 22:14:29 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <00aa01c0a459$c05f0070$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "George W. Dinolt" , , References: <3AA1AE3B.FE40CB13@pacbell.net> Subject: Re: Userland PPP logging problems Date: Sat, 3 Mar 2001 22:18:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I use userland ppp to connect to my DSL line. I have been doing this for > about a year now. Before that I was using ppp for dialup. > > I cvsuped on Friday, March 2 and rebuilt world and kernel on 4.2-STABLE. > That went well. > My previous rebuild was about Feb 10. > > I thought you might be interested to know about the following changes to > ppp running on my newly built system. I have been able to work around > them, but they are "interesting." > > 1.) I could not longer access ppp through pppctl. My ppp.conf file > contains the line > > set socket /var/run/internet-dsl "" 0660 > > which up until today allowed pppctl access. I get the message > > pppctl: cannot connect to socket /var/run/internet-dsl: Connection > refused > > After a little investigation, I determined that if /var/run/internet-dsl > socket (yes it is a socket, at least ls -F reports an "=" sign) exists > before ppp is started, then pppctl cannot access the file. I tried > looking around to see what has changed. I wonder if this has something > to do with the changes in the socket code. I doubt it. I've had to work around this problem with pppctl in all 3.x and 4.x versions. (Mind you, I haven't used ppp in about 6 months, after switching ISPs.) So much, in fact, that I wrote a little shell wrapper around pppctl (called pppadm) that looked after deleting the socket before attempting to start ppp and use pppctl. (It also let me do nifty things like status and link control stuff more easily) > I get the following console messages, which appear to be about ppp, when > I boot, start ppp in the boot and the socket /var/run/internet-dsl > exists: > > Mar 3 08:55:00 gateway /kernel: Starting ppp as "root" > Mar 3 08:55:00 gateway /kernel: Warning: Local: bind: Address already > in use > Mar 3 08:55:00 gateway /kernel: Warning: set socket: Failed 4 Are you sure ppp isn't running? The existence of a socket *usually* means ppp is running (anothing thing my script checked for.) -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message