tcp window concept

2013-06-16 Thread Varun Sharma
Hi, I am sending 5000 bytes of data in send system call. struct tcp_sock has max_window and snd_wnd two variable.Which are increase as packet sent out . whereas tcp header window variable value is fix for all packets.can anyone tell what is relationship b/w these windows ? and why max_window and s

Re: Sending an ICMP packet with ip_local_out

2013-06-16 Thread Rami Rosen
Adel, You say you have a NULL pointer but you do not specify where. can you please send the log of the panic ? Can you send the kernel module full code ? Regards, Rami Rosen http://ramirose.wix.com/ramirosen On Mon, Jun 17, 2013 at 6:18 AM, Adel Qodmani wrote: > Hello everyone, > >

Sending an ICMP packet with ip_local_out

2013-06-16 Thread Adel Qodmani
Hello everyone, I am trying to send an ICMP message in a kernel module; typically I'd build the skb, set up the net_device, the ethernet header and then use dev_queue_xmit. But right now I want my packet to follow the IP routing rules set in the system, so I thought I'll use ip_local_out functio

Re: File system Query

2013-06-16 Thread Valdis . Kletnieks
On Sat, 15 Jun 2013 18:53:22 +0530, Dibyayan Chakraborty said: > But I cant understand the following things. Thanks... Specific questions are *much* easier to answer. ;) > 1. Why mutex lock is used in the code ? I know it is used for process > synchronisation but why that section of the code is