On Thu, 3 Dec 1998, Enbo Zhang wrote:
|I have used ppp-2.3.5 for serveral days, I did not know it can do dial on
|demand. Then, I add 'demand' to my ppp option file as they said, but when I
|dial out I get a message 'demand dialling is not supported by kernel driver
|version 2.2.0', and dial on demand not work!
|
|I use kernel 2.0.36 and ppp as a module. So I think I have to re-compile the
|kernel with this new(?) ppp tool. I follow the instruction in the README
|file come with ppp-2.3.5, but when compile ppp.c, it MUST fail with many
|errors, I can't deal with it.
|
|What's wrong? How should I do?
Below is a description of a known ppp-2.3.5 problem and a cure. There was
a lot of discussion about it here a short time ago. I have good reason to
believe that everything said below is correct.
-----------------------------------------------------------------------------
Subject: Re: Error compiling PPP into kernel 2.0.30 [and all 2.0.x]
In article <6l4edd$ha8$[EMAIL PROTECTED]>,
Linuxer <[EMAIL PROTECTED]> wrote:
>Whether I answer m or y to ppp in make config, I get these error messages
>(in make modules and make zImage respectively).
>function ppp_dev_xmit
>ppp.c:3104: too few arguments to function 'dev_kfree_skb'
>ppp.c:3115 "
>ppp.c:3128: "
>ppp.c:3169: "
>ppp.c:3177: "
>ppp.c:3182: "
>make[3] [ppp.o] error 1
>
>What's wrong?
>I ran make kernel from my /etc/ppp-2.3.5/ directory and it had no errors.
----
Sun Jul 12 00:47:56 CDT 1998
If you have such errors then, whatever the reason or kernel version, the
cure should be the same. With a pristine ppp-2.3.5 source tree, starting
at line 3079 in ppp-2.3.5/linux/ppp.c you have:
#if LINUX_VERSION_CODE < VERSION(2,1,86)
#define FREE_SKB(skb) dev_kfree_skb(skb)
#else
#define FREE_SKB(skb) dev_kfree_skb(skb, FREE_WRITE)
#endif
Change the "<" to ">=" . Then copy the modified file to the kernel
source directory /usr/src/linux/drivers/net, replacing the old ppp.c
there, and recompile the kernel. The cautious may want to save the
old kernel ppp.c first.
If the particular Linux distribution you use has chosen to modify ppp.c,
you still should be able to use this as a guide to find this code near line
3079 and change it.
----------------------------------------------------------------------------
-Clifford
---
Clifford Kite Not a guru. (tm)
[EMAIL PROTECTED] Not even close.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]