I am writing a kernel module where I need to access sk_buff variables. But when I write
Netbeans says it can't locate that header file.
on 01/02/2012 – Made popular on 01/02/2012
I am writing a part of kernel module which transfers skbuff from one interface out to another interface. Ex all packet coming on eth0, gets forwarded out to on eth1. The problem even the first packet I intend to transmit is resulting in kernel crash in dev_queue_xmit(). Can anyone help me understand whats going wrong here ?.
I wrote a linux module to creat a proc file and write and read the data from it. But I am unable to remove the module, its showing an error unable to remove saying "device or resource busy. here is my code.
I am writing a module that hooks a function on OUTPUT hook of the kernel netfilter. I want to access the complete information inside the mac header of the packet esp all the 4 addresses or in some cases 3 addresses of the mac header.
I'm doing some test with a kernel module for change a file open mode of a process from write to readonly with the following code, I take the file descriptor number from lsof -p <pid of process> and compile the module && insmod changefilemode.ko it works on fedora 19, but if Ido it on RedHat 5, the file descriptor is closed.
Below kernel module is supposed to encrypt a single block of data with ecb(aes). It seems that "crypto_blkcipher_encrypt" function does not write to output buffer. What am I doing wrong in this module? I search a lot in Google and in here.