Queries about Net-Filter Hooks !!!

2011-11-21 Thread Kesava Srinivas
HI Friends, Trying to Play with Net-Filter Hooks and here are my Queries! 1] While adding a New UDP/IP Header over the received skbuffer from NetFilter Module;need to fill the UDP Check-sum. Please let me know ; if there is any Kernel Function which we can use to do this Job ??? OR Do I need to wr

Re: Filtering USB storage data in kernel module

2011-11-21 Thread Abhijit Pawar
On 11/18/2011 09:05 PM, Abhijit Pawar wrote: On 11/18/2011 08:16 PM, Greg KH wrote: On Fri, Nov 18, 2011 at 06:36:18PM +0530, Abhijit Pawar wrote: On 11/17/2011 08:19 PM, Greg KH wrote: On Thu, Nov 17, 2011 at 02:15:35PM +0530, Abhijit Pawar wrote: Hi All, I need to filter the data written/r

[no subject]

2011-11-21 Thread Jimmy Pan
..Do you want to feel something new? Do you want to feel new unforgettable sensations? This is for you! http://un-ocean.fr/p.g.php?wellink_friend_id=14ox0 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailm

LPC bus access howto

2011-11-21 Thread Andre Haupt
Hi all, We have a FPGA which will be connected to the LPC bus. This FPGA will provide some GPIO functionality, a rotary encoder, etc. Now i want to write a kernel driver to talk to this FPGA. I am unsure how to get access to the LPC bus in the first place. What kernel APIs should i use? How to ge

serial: 8250: RX hang issue

2011-11-21 Thread Pradeep Kumar
Hi All, I am working on a mobile development platform and performing some stress warm boot tests using UART debug console(which is using serial 8250 driver for console). I am getting device debug console UART RX hang after iterations > 1500. after this issue am not* able to issue any command. Able

Re: LPC bus access howto

2011-11-21 Thread Guillaume Knispel
On Mon, 21 Nov 2011 17:01:29 +0100 Andre Haupt wrote: > Hi all, > > We have a FPGA which will be connected to the LPC bus. This FPGA will > provide some GPIO functionality, a rotary encoder, etc. > > Now i want to write a kernel driver to talk to this FPGA. > I am unsure how to get access to th

sock_buff is NULL !

2011-11-21 Thread Kesava Srinivas
HI Team, Trying to make this code work; but some how it is entering the if condition mentioned below.sock_buff is still a NULL Pointer.I can see that Function was registered with the Ipv4 Hooks. Any ideas/scenarios where the sock_buff remains as NULL Pointer??? Testing this code by trying to do ss

RE: sock_buff is NULL !

2011-11-21 Thread Jeff Haran
From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of Kesava Srinivas Sent: Monday, November 21, 2011 11:03 AM To: kernelnewbies@kernelnewbies.org Subject: sock_buff is NULL ! HI Team, Trying to make this code work; but some how it i

Re: sock_buff is NULL !

2011-11-21 Thread Kesava Srinivas
Thanks Jeff for the reply. Yes; after changing the double pointer to a Normal Pointer., I can see that ., "if" block was skipped. -Thnx, VKS On Tue, Nov 22, 2011 at 12:50 AM, Jeff Haran wrote: > ** ** > > ** ** > > *From:* kernelnewbies-boun...@kernelnewbies.org [mailto: > kernelnewbies-boun...

RE: sock_buff is NULL !

2011-11-21 Thread Jeff Haran
From: Kesava Srinivas [mailto:vunnavafut...@gmail.com] Sent: Monday, November 21, 2011 11:32 AM To: Jeff Haran Cc: kernelnewbies@kernelnewbies.org Subject: Re: sock_buff is NULL ! Thanks Jeff for the reply. Yes; after changing the double pointer to a Normal Pointer., I can see that ., "

Freeing work_struct memory

2011-11-21 Thread Kai Meyer
I've got a bug I'm having trouble identifying. It seems like it could be related to my work_struct usage. I essentially have this: struct my_worker { work_struct work; /* some other data */ }; void worker_fn(struct work_struct *work) { struct my_worker *worker = contai

x86: Executing a raw vmlinux image (embedded environment)

2011-11-21 Thread Graeme Russ
Hi All, Firstly, a little introduction an background - I am currently the maintainer for the x86 port of Das U-Boot (or more simply U-Boot). While the x86 port is not as well known as the more major ports like ARM and PPC, it is starting to gain more attention and more developer input which has be

Re: x86: Executing a raw vmlinux image (embedded environment)

2011-11-21 Thread sk.syed2
>       /vmlinux                                        2,629,659  bytes >       /vmlinux.o                                      2,889,050  bytes >       /arch/i386/boot/bzImage                         1,104,864  bytes >       /arch/x86/boot/bzImage                          1,104,864  bytes >      

Path for STOLEN Packets!!!

2011-11-21 Thread Kesava Srinivas
Hi , Even after lot of google; didn't get the accurate answer for this. After STEALING Packets (NF_STOLEN); want to send the Manipulated Packet (added extra header) to some of the available net devices. Please let me know what is the Function that I Should call to do this step ?? Also; once the skb