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