Re: Re(2): configd and ppp
Re: Re(2): configd and ppp
- Subject: Re: Re(2): configd and ppp
- From: Allan Nathanson <email@hidden>
- Date: Wed, 26 Feb 2003 00:29:50 -0500
On Wednesday, February 26, 2003, at 12:09 AM, Peter Lovell wrote:
At 13:20 -0500 21/2/03, Peter Lovell wrote:
I have a puzzle with regard to "configd" daemon and PPP. It works OK
- no
problem there - but there's a puzzling piece I need to understand
better.
When PPP is dialed-up (using standard Apple internal modem) there's
a UDP
socket generated by configd once each second. I don't yet have
details on
what data, if any, might be sent or received and I'm about to look
into
that. But it creates and closes the socket once each second.
[...]
Any ideas, anyone??
Looking through the PPP source, one obvious place where this might be
coming from is the PPP stats ioctl. If you issue a PPP_STATUS
request to PPP, it gets the stats by opening a UDP socket and sending
a SIOCGPPPSTATS ioctl to it. See the ppp_status function in the
following file.
<http://www.opensource.apple.com/cgi-bin/registered/cvs/src/live/ppp/
Controller/ppp_command.c?rev=1.21&content-type=text/x-cvsweb-markup>
S+E
--
Quinn "The Eskimo!"
<http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications,
Hardware
Well, curiouser and curiouser.
The one-per-second sockets don't actually do anything. And they're
created by configd rather than pppd, even though this only happens when
ppp is active.
Each second, I see
socreate
soreserve
socontrol
soclose
sofree
There's also activity to port 5353 which I remember being the
Rendezvous
port (mDNSResponder), but it's not the once-per-second. It's on a
different socket and is not related at all.
The sockets are created by configd (I dump the pid at socreate) and not
pppd, which is puzzling. I guess I'll just have to start thwacking my
way
through sources to find what might be the cause.
This could still be related to the PPP statistics since the
PPPController is running as part of the configd process (it's one of
the many plugins).
Do you have Internet Connect.app (or any other "dialer" app) running?
Do you have the Modem menu extra running?
- Allan
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.