bsd_comp bug in newer kernels ?

bsd_comp bug in newer kernels ?

Post by Karsten Ke » Wed, 15 Nov 1995 04:00:00



Hello ,

I have problems with ppp and bsd_comp with newer kernels (since 1.3.38 ???,
I don't know the exact version).
The connect is over modem between 2 Linux PC with the same software
(kernel 1.3.41 in the moment,ppp-2.2.0c).
Without compression all is OK. Also in the first 30 seconds with
compression (compression is in this time not enabled !).
here the log of the pppd with debug enabled (the log of the other machine is
similar):
Nov 13 20:02:56 lx01 pppd[1709]: pppd 2.2.0 started by root, uid 0
Nov 13 20:03:25 lx01 pppd[1709]: Serial connection established.
Nov 13 20:03:26 lx01 pppd[1709]: Using interface ppp0
Nov 13 20:03:26 lx01 pppd[1709]: Connect: ppp0 <--> /dev/ttyS1
Nov 13 20:03:26 lx01 pppd[1709]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0x2388c0c2> <pcomp> <accomp>]
Nov 13 20:03:26 lx01 pppd[1709]: rcvd [LCP ConfAck id=0x1 <mru 1500> <magic 0x2388c0c2> <pcomp> <accomp>]
Nov 13 20:03:28 lx01 pppd[1709]: rcvd [LCP ConfReq id=0x1 <mru 1500> <magic 0xe5cdab12> <pcomp> <accomp>]
Nov 13 20:03:28 lx01 pppd[1709]: sent [LCP ConfAck id=0x1 <mru 1500> <magic 0xe5cdab12> <pcomp> <accomp>]
Nov 13 20:03:28 lx01 pppd[1709]: sent [IPCP ConfReq id=0x1 <addr 192.9.216.171> <compress VJ 0f 01>]
Nov 13 20:03:28 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 12>]
Nov 13 20:03:28 lx01 pppd[1709]: rcvd [IPCP ConfReq id=0x1 <addr 192.9.216.120> <compress VJ 0f 01>]
Nov 13 20:03:28 lx01 pppd[1709]: sent [IPCP ConfAck id=0x1 <addr 192.9.216.120> <compress VJ 0f 01>]
Nov 13 20:03:28 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 12>]
Nov 13 20:03:28 lx01 pppd[1709]: sent [CCP ConfAck id=0x1 <bsd v1 12>]
Nov 13 20:03:28 lx01 pppd[1709]: rcvd [IPCP ConfAck id=0x1 <addr 192.9.216.171> <compress VJ 0f 01>]
Nov 13 20:03:28 lx01 pppd[1709]: local  IP address 192.9.216.171
Nov 13 20:03:28 lx01 pppd[1709]: remote IP address 192.9.216.120
Nov 13 20:03:28 lx01 pppd[1709]: found interface eth0 for proxy arp
Nov 13 20:03:28 lx01 pppd[1709]: rcvd [CCP ConfAck id=0x1 <bsd v1 12>]
Nov 13 20:03:31 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 11>]
Nov 13 20:03:31 lx01 pppd[1709]: rcvd [CCP ConfAck id=0x1 <bsd v1 11>]
Nov 13 20:03:31 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 11>]
Nov 13 20:03:31 lx01 pppd[1709]: sent [CCP ConfAck id=0x1 <bsd v1 11>]
Nov 13 20:03:34 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 10>]
Nov 13 20:03:34 lx01 pppd[1709]: rcvd [CCP ConfAck id=0x1 <bsd v1 10>]
Nov 13 20:03:34 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 10>]
Nov 13 20:03:34 lx01 pppd[1709]: sent [CCP ConfAck id=0x1 <bsd v1 10>]
Nov 13 20:03:37 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 9>]
Nov 13 20:03:37 lx01 pppd[1709]: rcvd [CCP ConfAck id=0x1 <bsd v1 9>]
Nov 13 20:03:37 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 9>]
Nov 13 20:03:37 lx01 pppd[1709]: sent [CCP ConfAck id=0x1 <bsd v1 9>]
Nov 13 20:03:40 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 8>]
Nov 13 20:03:40 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 8>]
Nov 13 20:03:40 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 8>]
Nov 13 20:03:40 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 8>]
Nov 13 20:03:43 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 7>]
Nov 13 20:03:43 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 7>]
Nov 13 20:03:43 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 7>]
Nov 13 20:03:43 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 7>]
Nov 13 20:03:46 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 6>]
Nov 13 20:03:46 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 6>]
Nov 13 20:03:46 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 6>]
Nov 13 20:03:46 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 6>]
Nov 13 20:03:49 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 5>]
Nov 13 20:03:49 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 5>]
Nov 13 20:03:49 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 5>]
Nov 13 20:03:49 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 5>]
Nov 13 20:03:52 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 4>]
Nov 13 20:03:52 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 4>]
Nov 13 20:03:52 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 4>]
Nov 13 20:03:52 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 4>]
Nov 13 20:03:55 lx01 pppd[1709]: sent [CCP ConfReq id=0x1 <bsd v1 3>]
Nov 13 20:03:55 lx01 pppd[1709]: rcvd [CCP ConfRej id=0x1 <bsd v1 3>]
Nov 13 20:03:55 lx01 pppd[1709]: rcvd [CCP ConfReq id=0x1 <bsd v1 3>]
Nov 13 20:03:55 lx01 pppd[1709]: sent [CCP ConfRej id=0x1 <bsd v1 3>]
Nov 13 20:03:58 lx01 pppd[1709]: CCP: timeout sending Config-Requests
Nov 13 20:04:32 lx01 pppd[1709]: Terminating on signal 2.
Nov 13 20:04:32 lx01 pppd[1709]: sent [LCP TermReq id=0x2]
Nov 13 20:04:32 lx01 pppd[1709]: rcvd [LCP TermAck id=0x2]
Nov 13 20:04:32 lx01 pppd[1709]: Connection terminated.

After getting "CCP: timeout sending Config-Requests" the connection hangs.
My systems are ELF and bsd_comp and ppp are modules.

Here is also a problem with the module:

depmod -ave says:

*** Unresolved symbols in module /lib/modules/1.3.41/net/bsd_comp.o
        ppp_register_compressor
        ppp_unregister_compressor
/lib/modules/1.3.41/net/ne.o
/lib/modules/1.3.41/net/ppp.o
/lib/modules/1.3.41/net/slhc.o
/lib/modules/1.3.41/net/slip.o

These symbols are in ppp.o, I don't understand why depmod didn't find it.
modules 1.2.8)
If I load the modules with insmod no error occurs.

Any hints for me?

Karsten.

 
 
 

bsd_comp bug in newer kernels ?

Post by Daeshik K » Thu, 16 Nov 1995 04:00:00




>depmod -ave says:

>*** Unresolved symbols in module /lib/modules/1.3.41/net/bsd_comp.o
>        ppp_register_compressor
>        ppp_unregister_compressor
>/lib/modules/1.3.41/net/ne.o
>/lib/modules/1.3.41/net/ppp.o
>/lib/modules/1.3.41/net/slhc.o
>/lib/modules/1.3.41/net/slip.o

>These symbols are in ppp.o, I don't understand why depmod didn't find it.
>modules 1.2.8)
>If I load the modules with insmod no error occurs.

        In ppp.c,
        ppp_register_compressor() and ppp_unregister_compressor()
        are defined as static class.

        You can do:
#ifdef MODULE
int ppp_register_...
void ppp_unregister_..
#else
static int ppp_register...
static void ppp_un..
#endif

        Also, you have to change the actual func. declaration too.

Newsgroups: comp.os.linux.development.system
Subject: Re: bsd_comp bug in newer kernels ?
Summary:
Expires:

Sender:
Followup-To:
Distribution:
Organization: IBLong2U...
Keywords: pppd bsd_comp
Cc:


- Show quoted text -


>depmod -ave says:

>*** Unresolved symbols in module /lib/modules/1.3.41/net/bsd_comp.o
>        ppp_register_compressor
>        ppp_unregister_compressor
>/lib/modules/1.3.41/net/ne.o
>/lib/modules/1.3.41/net/ppp.o
>/lib/modules/1.3.41/net/slhc.o
>/lib/modules/1.3.41/net/slip.o

>These symbols are in ppp.o, I don't understand why depmod didn't find it.
>modules 1.2.8)
>If I load the modules with insmod no error occurs.

        In ppp.c,
        ppp_register_compressor() and ppp_unregister_compressor()
        are defined as static class.

        You can do:
#ifdef MODULE
int ppp_register_...
void ppp_unregister_..
#else
static int ppp_register...
static void ppp_un..
#endif

        Also, you have to change the actual func. declaration too.

--
        *  Daeshik Kim  (a.k.a. hellcat) O: (703) 760-1780


            * http://www.wam.umd.edu/~korea