From: "Jesse Peng" Subject: Re: Doubt on packet generation in kernel space. Date: Fri, 12 Aug 2005 16:15:58 +0800 Message-ID: <001701c59f16$11acc780$0f01a8c0@deansoft8ufttf> References: <1123742009.14923.110.camel@varun> Mime-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Return-path: To: "varun" , List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Dear Varun: It depends on whether your code is in process context or interupt context. Maybe you will elaberate the situation you generate the icmp packet?It will help more for others to help.. Your sincerely Jesse ----- Original Message ----- From: "varun" To: Sent: Thursday, August 11, 2005 2:33 PM Subject: Doubt on packet generation in kernel space. > Hi all > > Iam a newbie and iam basically interested in generation my own > icmp packet in the kernel space using skb. That is iam aware that this > can be done using raw or packet socket from user space. But to > do it from kernel space is it possible if yes how to go > about it. i believe that what raw socket call from User space does in > kernel thats what iam supposed to do.(Correct me if iam wrong). I think > i might have to build my own skb and put it in transmit queue. Is it > possible? Iam also aware that there are some packet generation module > that is inbuilt as per the Documentation in linux kernel states. But i > dont want to use that instead i want to create my own module that will > allow me generate the icmp packet. Please help!! > > Varun > >