[NTLUG:Discuss] Internet Sharing in Linux

Patrick Parks patrick at patrickparks.com
Sun Mar 3 15:01:15 CST 2002


On Tue, 2002-03-05 at 06:35, Steve Baker wrote:

> What you are doing here is building a pluggable module to bolt into the
> kernel at runtime - this is a relatively simple process.  You'll want to
> get familiar with the 'insmod' and 'rmmod' commands that let you install and
> remove a kernel module - and of course 'lsmod' that lets you find out what
> modules are currently installed - but just follow the instructions I think
> you'll be suprised at how easy it is.
> 
> The nice thing about modules is that you can test them with insmod/rmmod
> and you won't mess anything up permenantly - a reboot restores your kernel
> to normal.


ok, I ran the first command:

gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c dm9xs.c

it thought for a moment then finished and now I have a nice shiny new
dm9xs.o in the directory where the makefile and dm9xs.c is.

now I dont know if I am reading this right or not but I think it is
telling me to run the command:

make mod

I do this and get this error:


[root at computer temp]# make mod
make: *** No rule to make target `dmfe.c', needed by `mod'.  Stop.

Now, I am betting I am not doing this part right, but I could be wrong. 

This is where I am at with it, and I am reading some of the man pages,
but I see nothing about this. Thanks

Patrick Parks




More information about the Discuss mailing list