Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 22:18:13 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "George W. Dinolt" <gdinolt@pacbell.net>, <brian@Awfulhak.org>, <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Userland PPP logging problems
Message-ID:  <00aa01c0a459$c05f0070$1200a8c0@gsicomp.on.ca>
References:  <3AA1AE3B.FE40CB13@pacbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00aa01c0a459$c05f0070$1200a8c0>