[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mark Spieth's ppp correction works for 2.2.17, supporting ltmodem.o driver



Background: The Lucent supplied binary ltmodem.o winmodem driver worked
tranparently through kernels 2.2.14, but changes in ppp.o caused it to
fail for 2.2.15 and later kernels.  Mark today reported a potential
solution for 2.2.16 sources.

The email is transmitted under a just compiled 2.2.17 kernel, with its
own ppp.o and ltmodem.o, demonstrating the effectiveness of Mark's
correction to ppp.o.  A script log of a dialup is Attached, with a few
explanatory and clean up edits.

For reasons still obscure the Mark's patch did not work on my system,
though it checked on Mark's. It was easy enough to do it by hand,
however.  Thereafter:
    make menuconfig
    make dep
    make-kpkg --version=mark.1 kernel_image modules_image
did the compiles and assembled them into Debian install packages.
After installation and reboot, the tests shown in the mark17.txt script
were run, followed by this 2nd current ppp session.

Thanks much Mark, from all of us.
We'll leave it to you to inform the ppp source maintainer.

Tomorrow I'll send the 
  kernel+modules in Debian and Redhat formats 
  the include/linux/tty.h edit of 2.2.17 source
to http://www.walbran.org for general access.  They may not appear for a
few days however, as Sean Walbran is traveling. The /boot/config-2.2.17
which will be installed is the compile configuration file.  It has more
options chosen than most of you need.  

MarvS

> Mark Spieth wrote:
> 
> in includelinux/tty.h
> 
> in struct tty_struct
> 
> copy poll_wait element to the bottom of the structure. this one is in the
> wrong position in pre 15s
> 
> I got the same patch file again when I used yours. strange.
> a new patch is attached created from your tty.h
> otherwise try by hand
> 
> mark
Script started on Wed Oct  4 21:52:56 2000

koala:~# uname -r
2.2.17

koala:~# insmod lt/ltmodem.o
lt/ltmodem.o: kernel-module version mismatch
	lt/ltmodem.o was compiled for kernel version 2.2.12-20
	while this kernel is version 2.2.17.

koala:~# insmod lt/ltmodem.o
Warning: kernel-module version mismatch
	lt/ltmodem.o was compiled for kernel version 2.2.12-20
	while this kernel is version 2.2.17

koala:~# lsmod
Module                  Size  Used by
ltmodem               453200   0  (unused)
nls_cp437               3872   2  (autoclean)

koala:~# Ptail 
  (is a script which does
   lsmod
   pon
   lsmod
   tail -f /var/log/syslog  )

Module                  Size  Used by
ltmodem               453200   0  (unused)
nls_cp437               3872   2  (autoclean)

Using /lib/modules/2.2.17/net/slhc.o
Using /lib/modules/2.2.17/net/ppp.o
2.2.17
Module                  Size  Used by
ppp                    20140   0  (unused)
slhc                    4372   0  [ppp]
ltmodem               453200   0  (unused)
nls_cp437               3872   2  (autoclean)
Starting PPP
Oct  4 21:54:12 koala pppd[233]: pppd 2.4.0 started by root, uid 0
Oct  4 21:54:13 koala chat[235]: abort on (BUSY)
Oct  4 21:54:13 koala chat[235]: abort on (NO CARRIER)
Oct  4 21:54:13 koala chat[235]: abort on (VOICE)
Oct  4 21:54:13 koala chat[235]: abort on (NO DIALTONE)
Oct  4 21:54:13 koala chat[235]: abort on (NO DIAL TONE)
Oct  4 21:54:13 koala chat[235]: abort on (NO ANSWER)
Oct  4 21:54:13 koala chat[235]: send (ATZ^M)
Oct  4 21:54:13 koala chat[235]: expect (OK)
Oct  4 21:54:13 koala chat[235]: ATZ^M^M
Oct  4 21:54:13 koala chat[235]: OK
Oct  4 21:54:13 koala chat[235]:  -- got it 
Oct  4 21:54:13 koala chat[235]: send (ATQ0V1E1S0=0&C1&D2S11=55+FCLASS=0^M)
Oct  4 21:54:14 koala chat[235]: expect (OK)
Oct  4 21:54:14 koala chat[235]: ^M
Oct  4 21:54:14 koala chat[235]: ATQ0V1E1S0=0&C1&D2S11=55+FCLASS=0^M^M
Oct  4 21:54:14 koala chat[235]: OK
Oct  4 21:54:14 koala chat[235]:  -- got it 
Oct  4 21:54:14 koala chat[235]: send (ATDT3019178111^M)
Oct  4 21:54:14 koala chat[235]: expect (CONNECT)
Oct  4 21:54:14 koala chat[235]: ^M
Oct  4 21:54:46 koala chat[235]: ATDT3019178111^M^M
Oct  4 21:54:46 koala chat[235]: CONNECT
Oct  4 21:54:46 koala chat[235]:  -- got it 
Oct  4 21:54:46 koala chat[235]: send (\d)
Oct  4 21:54:47 koala pppd[233]: Serial connection established.
Oct  4 21:54:47 koala pppd[233]: Using interface ppp0
Oct  4 21:54:47 koala pppd[233]: Connect: ppp0 <--> /dev/ttyS14
Oct  4 21:54:48 koala pppd[233]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xeb4b75a7> <pcomp> <accomp>]
Oct  4 21:54:48 koala pppd[233]: rcvd [LCP ConfReq id=0x1 < 00 04 00 00> <mru 1524> <asyncmap 0x0> <auth pap> <pcomp> <accomp> <mrru 1524> <endpoint [MAC:00:c0:7b:9b:88:d0]>]
Oct  4 21:54:48 koala pppd[233]: sent [LCP ConfRej id=0x1 < 00 04 00 00> <mrru 1524>]
Oct  4 21:54:48 koala pppd[233]: rcvd [LCP ConfReq id=0x2 <mru 1524> <asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint [MAC:00:c0:7b:9b:88:d0]>]
Oct  4 21:54:48 koala pppd[233]: sent [LCP ConfAck id=0x2 <mru 1524> <asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint [MAC:00:c0:7b:9b:88:d0]>]
Oct  4 21:54:51 koala pppd[233]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xeb4b75a7> <pcomp> <accomp>]
Oct  4 21:54:51 koala pppd[233]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xeb4b75a7> <pcomp> <accomp>]
Oct  4 21:54:51 koala pppd[233]: sent [LCP EchoReq id=0x0 magic=0xeb4b75a7]
Oct  4 21:54:51 koala pppd[233]: sent [PAP AuthReq id=0x1 user="stodolsk" password=<hidden>]
Oct  4 21:54:51 koala pppd[233]: rcvd [LCP EchoRep id=0x0 magic=0x0]
Oct  4 21:54:51 koala pppd[233]: rcvd [PAP AuthAck id=0x1 ""]
Oct  4 21:54:51 koala pppd[233]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
Oct  4 21:54:52 koala pppd[233]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Oct  4 21:54:52 koala pppd[233]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.65.28.11>]
Oct  4 21:54:52 koala pppd[233]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 10.65.28.11>]
Oct  4 21:54:52 koala pppd[233]: rcvd [CCP ConfReq id=0x1 < 11 06 00 01 01 03>]
Oct  4 21:54:52 koala pppd[233]: sent [CCP ConfRej id=0x1 < 11 06 00 01 01 03>]
Oct  4 21:54:52 koala pppd[233]: rcvd [IPCP ConfNak id=0x1 <addr 209.122.246.68>]
Oct  4 21:54:52 koala pppd[233]: sent [IPCP ConfReq id=0x2 <addr 209.122.246.68> <compress VJ 0f 01>]
Oct  4 21:54:52 koala pppd[233]: rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Oct  4 21:54:52 koala pppd[233]: sent [CCP ConfReq id=0x2]
Oct  4 21:54:52 koala pppd[233]: rcvd [IPCP ConfAck id=0x2 <addr 209.122.246.68> <compress VJ 0f 01>]
Oct  4 21:54:52 koala pppd[233]: local  IP address 209.122.246.68
Oct  4 21:54:52 koala pppd[233]: remote IP address 10.65.28.11
Oct  4 21:54:52 koala pppd[233]: Script /etc/ppp/ip-up started (pid 238)
Oct  4 21:54:52 koala pppd[233]: rcvd [CCP ConfRej id=0x2]
Oct  4 21:54:52 koala pppd[233]: Script /etc/ppp/ip-up finished (pid 238), status = 0x0

koala:~# lsmod
Module                  Size  Used by
ppp_deflate            39404   1  (autoclean)
bsd_comp                3892   0  (autoclean)
ppp                    20140   2  [ppp_deflate bsd_comp]
slhc                    4372   1  [ppp]
ltmodem               453200   1 
nls_cp437               3872   2  (autoclean)

koala:~# ping novell.com
PING novell.com (192.233.80.9): 56 data bytes
64 bytes from 192.233.80.9: icmp_seq=0 ttl=116 time=249.3 ms
64 bytes from 192.233.80.9: icmp_seq=1 ttl=116 time=240.0 ms
64 bytes from 192.233.80.9: icmp_seq=2 ttl=116 time=230.0 ms
64 bytes from 192.233.80.9: icmp_seq=3 ttl=116 time=230.0 ms

--- novell.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 230.0/237.3/249.3 ms

koala:~# poff
koala:~# Oct  4 21:55:24 koala pppd[233]: Terminating on signal 15.
Oct  4 21:55:24 koala pppd[233]: Script /etc/ppp/ip-down started (pid 259)
Oct  4 21:55:24 koala pppd[233]: sent [LCP TermReq id=0x2 "User request"]
Oct  4 21:55:24 koala pppd[233]: Script /etc/ppp/ip-down finished (pid 259), status = 0x0
Oct  4 21:55:24 koala pppd[233]: rcvd [LCP TermAck id=0x2]
Oct  4 21:55:24 koala pppd[233]: Connection terminated.
Oct  4 21:55:24 koala pppd[233]: Connect time 0.7 minutes.
Oct  4 21:55:24 koala pppd[233]: Sent 770 bytes, received 907 bytes.
Oct  4 21:55:24 koala pppd[233]: Hangup (SIGHUP)
Oct  4 21:55:24 koala pppd[233]: Exit.

Terminating ppp0 with poff

ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

 
Script memoved module ltmodem
  and ppp related modules
Remaining modules in kernel-2.2.17 are:
Module                  Size  Used by
nls_cp437               3872   2  (autoclean)
 
koala:~# exit
exit

Script done on Wed Oct  4 21:56:45 2000

Reply to: