11-13-2008
kernel module
Hi All,
I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat.
Somebody know if I can do this using netfilter??
Thanks.
10 More Discussions You Might Find Interesting
1. SuSE
Hi All,
Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff.
Cheers,
Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies
2. Red Hat
Hi All
Im trying to access the my windows XP NTFS from Redhat linux 4.0 Enterprise edition
I have downloaded the respective rpm
And im able to install it successfully
Then i have given the following command , but got an error
Here are my partitions
And when i give the below... (1 Reply)
Discussion started by: balumankala
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Does anyone know if it is possible to know the current value of a kernel module parameters after the module is loaded. Are the values of the parameters advertised at some /proc or /sys location ?
The only thing I know is modinfo, that actually looks a the module .ko and gives a... (3 Replies)
Discussion started by: macL
3 Replies
4. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
5. Linux
Hi masters,
I am new to linux and unix forum and this is my first forum. So please excuse if
I am not giving sufficient information. I will give them on request.
I have created a bandwidth manager module. I am using a 2.6.9 kernel and in Red Hat 3.4.3 distribution. But when i run make... (1 Reply)
Discussion started by: iamjayanth
1 Replies
6. UNIX for Advanced & Expert Users
I have one big module 2.6.18 kernel mod.c
I want to divide this to several files.
The problem is to write right Makefile
lib1.h
lib1.c
mod.c
mod.c works fine normally but when I divide into several files
and try to compile with this makefile
obj-m := mod.o
mod-objs := lib1.o
... (3 Replies)
Discussion started by: marcintom
3 Replies
7. Solaris
Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies
8. Linux
Hi,
if I install a module with specific parameter, will this parameters applied next time system boots?
for exampe, I want to disable InterruptThrottleRate
modprobe e1000e InterruptThrottleRate=0
Is this parameter apllied only for this run, or this module will always use this parameter when... (2 Replies)
Discussion started by: Shedon
2 Replies
9. UNIX for Advanced & Expert Users
Question may seem illogical but I still need clarification.
Can we debug kernel modules loaded on my target system using kdb / kgdb without using any other system or remote debugging?
In other words my question is can we use kdb/kgdb to debug kernel modules running on same system? (2 Replies)
Discussion started by: rupeshkp728
2 Replies
10. Linux
Hi everyone,
I am trying to prevent the ehci_hcd kernel module to load at boot time.
Here's what I've tried so far:
1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here):
2) Blacklisted the module by adding the following string to
3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies
modstat(2) System Calls Manual modstat(2)
NAME
modstat() - get information for a dynamically loaded kernel module
SYNOPSIS
DESCRIPTION
allows processes to get information for dynamically loaded kernel modules. For processes with appropriate privilege, it fills in all the
elements of the structure, specified by stbuf, with the information available for the given module identifier module_id. For nonprivileged
processes, fills in all information except the address and size of the module object file sections in memory (ms_base, ms_size, ms_bss,
ms_bss_size).
If the value of get_next_module is TRUE, returns the information for the next module whose identifier is greater than or equal to mod-
ule_id. Any module_id associated with a registered module may be queried by
The and definitions are:
Notes
is currently implemented as a macro.
Security Restrictions
For nonprivileged processes, returns all module information except address and size of module object file sections in memory. To retrieve
all information of the module including the address and size of the module object file sections in memory using the process must be a supe-
ruser process or a privileged process with privilege.
See privileges(5) for more information about the privilege.
RETURN VALUE
returns one of the following values:
Success.
Failure.
It sets to indicate the error.
ERRORS
sets to one of the following values if the corresponding condition is detected.
module_id does not match any loaded or registered module when get_next_module is FALSE or module_id is greater than the identifier for
any loaded module when get_next_module is TRUE.
The Dynamically Loadable Kernel Module feature is not initialized.
SEE ALSO
kcmodule(1M), modload(2), privileges(5).
modstat(2)