Claudio Jeker wrote:
So ppp(8) did insane routing message handling in its sysctl handlers. The
worst thing about them are that their actually not needed and better
replaced with libc functions (getifaddrs and if_nametoindex).
This diff is not haevily tested (my last ppp usage is years ago) so I'm
hopeing people with ppp(8) issues could give this a whirl and see if it
fixes the problems.
Hi,
I built the kernel and userland from yesterday's cvsync and applied the
patch. I tried for the past few hours to get connected to my ISP but
unfortunately haven't been able to test the dial up ppp connection
completely. However, FWIW here is my feedback.
Before applying the patch, I got
load averages: 1.64, 0.78, 0.33
09:41:55
36 processes: 1 running, 33 idle, 2 on processor
CPU0 states: 100% user, 0.0% nice, 0.0% system, 0.0% interrupt,
0.0% idle
CPU1 states: 100% user, 0.0% nice, 0.0% system, 0.0% interrupt,
0.0% idle
Memory: Real: 24M/108M act/tot Free: 2906M Swap: 0K/4636M used/tot
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
4421 root 64 0 784K 1336K run/0 - 3:14 99.12% ppp
14743 root 64 0 792K 1340K onproc/1 - 0:36 82.76% ppp
5203 _x11 2 0 6252K 12M sleep/0 select 0:02 0.00% Xorg
After the patch was applied,
load averages: 1.31, 1.09, 0.57
12:45:15
39 processes: 38 idle, 1 on processor
CPU0 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt,
100% idle
CPU1 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt,
100% idle
Memory: Real: 25M/111M act/tot Free: 2904M Swap: 0K/4636M used/tot
I got a dialup account from my ISP to test this out but I am not able to
use a PCMCIA modem -- probably something I am doing is wrong but I don't
unfortunately understand how to get over this hurdle.
From dmesg ..
com3 at pcmcia0 function 0 "MEGAHERTZ, XJ2288, V.34 PCMCIA MODEM" port
0xa3f8/8: ns16550a, 16 byte fifo
com3: probed fifo depth: 0 bytes
However it used to work long time ago. I get the following in my logs
Jul 2 12:42:25 builder ppp[14243]: Phase: Using interface: tun0
Jul 2 12:42:25 builder ppp[14243]: Phase: deflink: Created in closed state
Jul 2 12:42:25 builder ppp[14243]: tun0: Command: default: set device
/dev/cua03
Jul 2 12:42:25 builder ppp[14243]: tun0: Command: default: set speed 28800
Jul 2 12:42:25 builder ppp[14243]: tun0: Command: default: set dial
ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK
\\dATDT\\T TIMEOUT 40 CONNECT
Jul 2 12:42:25 builder ppp[14243]: tun0: Phase: PPP Started
(interactive mode).
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: /dev/tty: dial mts
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set phone 2254638
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set authname vsankar
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set authkey ********
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set login
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set timeout 120
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: set ifaddr
10.0.0.15/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: add default HISADDR
Jul 2 12:42:46 builder ppp[14243]: tun0: Warning: Add route failed:
0.0.0.0/0 already exists
Jul 2 12:42:46 builder ppp[14243]: tun0: Command: mts: enable dns
Jul 2 12:42:46 builder ppp[14243]: tun0: Phase: bundle: Establish
Jul 2 12:42:46 builder ppp[14243]: tun0: Phase: deflink: closed -> opening
Jul 2 12:42:46 builder ppp[14243]: tun0: Phase: deflink: Connected!
Jul 2 12:42:46 builder ppp[14243]: tun0: Phase: deflink: opening -> dial
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Phone: 2254638
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Send: AT\^M
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Expect(5): OK
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Received: AT\^M\^M
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Received: OK
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Send: ATE1Q0\^M
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Expect(5): OK
Jul 2 12:42:46 builder ppp[14243]: tun0: Chat: Received: \^M
Jul 2 12:42:51 builder ppp[14243]: tun0: Chat: Expect timeout
Jul 2 12:42:51 builder ppp[14243]: tun0: Warning: Chat script failed
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: deflink: dial -> hangup
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: deflink: Disconnected!
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: deflink: Connect time:
5 secs: 0 octets in, 0 octets out
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: deflink: 0 packets in,
0 packets out
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: total 0 bytes/sec,
peak 0 bytes/sec on Thu Jul 2 12:42:46 2009
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: deflink: hangup -> closed
Jul 2 12:42:51 builder ppp[14243]: tun0: Phase: bundle: Dead
--
Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: (204) 885-9535, E-Mail: vsan...@foretell.ca