Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to implement PPPOE in Linux for my educational project. For that I
wanted to first understand the existing implementation code flow but
I am not able to progress much on this.
Is there any way to print the debug message of the pppoe code?
I want to put some printk statement and want to understand the code flow.
Please help me by giving some input for the following point.
1) How to invoke the current pppoe code?
My idea for implementing this project as follows
I will remove the existing PPPOE module and will insert module written by me and should be able to connect to internet. Is it ok for testing the module? Please help me if I am going in wrong direction.
Actually I did the following to understand the above .
I removed the pppoe and pppox module from the kernel and ran the
following command
"pppoe -A eth0" and ran the tcpdump. I thought as I have removed the
modules there will not be any PPPOE packet getting generated but it
was getting generate.
I am clueless.
Please provide some inputs on how to progress from here,
I think if you want to know what a program does, for example which libs are called and what they do, you should use the strace command.
And please explain what you mean with "I removed the modules from the kernel". As you know, when you remove a module with rmmod it will be loaded again as soon as it is been needed by a program.
I think I can't help you with this, but I've reported this thread and asked the Moderators to move it to Programming http://www.linuxquestions.org/questions/programming-9/, there are lots of people who can help (hopefully)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.