Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Sorry for the long mail. I am fairly new to the Linux world. Recently installed Ubuntu 8.04 on a partition in my AMD processor based pc, then tried to test the snull driver on it. The compilation of snull.c failed since the net_device structure is changed in version 2.6.24. I was able to download a snull.c version for 2.6.24 which compiled clean.
Then I tried configuring the sn0 interface using the command "ifconfig sn0 local0" similarly I tried to do "ifconfig sn1 local1". local0,local1, remote0 and remote1 are properly configured, since I can ping local0 and local1. "ifconfig sn0 local0" commands fail on my installation, following is the error message
root@Ubuntu8.04:~/drivers/snull# ifconfig sn0 local0
SIOCSIFADDR: No such device
sn0: ERROR while getting interface flags: No such device
I googled the above error message and came to a conclusion that I should use "ifconfig eth0:0 local0" for my pc. My pc has a single ethernet card with default interface name as "eth0". After doing all this I modified my test snull.c to associate "eth0:0" with the two devices. I could ping the local0 interfaces but not the remote0 interfaces. Then putting some debug printks, I concluded that register_netdev is not really registering the device in my case, since I do not get any printk debug messages from the device functions like, snull_open, snull_config, snull_tx etc.
1: Is my process of creating eth0:0 corresponding to sn0 correct?
2: Is my assumption that register_netdev is not succeeding correct?
I would appreciate a solution for this or a more specific debug point.