Federico Pelizza <[EMAIL PROTECTED]> wrote:

> The first time that I compiled PPP, I got log messages like
> 
> Apr 27 18:10:14 gandalf kernel: CSLIP: code copyright 1989 Regents of the
> University of California
> Apr 27 18:10:14 gandalf kernel: PPP: version 2.3.3 (demand dialling)
> Apr 27 18:10:14 gandalf kernel: PPP line discipline registered.
> 
> So I could notice that ppp_init() and ppp_first_time() in ppp.c in kernel
> where invoked when launching pppd for the first time in a linux session and
> then no more. Which is what I expected.

I assume you have ppp as a module, not compiled into the kernel.
ppp_init() and ppp_first_time() get called when the module is loaded.

> Now, that I compiled ppp several times with various new printk() that I
> added to trace the program better for my goal, but with none further
> modification, I get none of the three logs above, but just
> 
> Apr 30 09:39:17 towel modprobe: can't locate module ppp0

You need to `rmmod ppp' to unload the ppp module, then do `insmod
ppp.o' to load your new version of the module.  `lsmod' will show you
which modules are loaded.  If the module gets loaded automatically, it
will get unloaded after a period of inactivity.

The "can't locate module ppp0" message happens when pppd tries to do
an ioctl on ppp0 to see if the kernel has ppp support.  You can have
the ppp module loaded but no ppp network interface units existing.

Paul.

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to