Re: icmp_send()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ya, ur right. The alloc_skb()  does malloc for  skb. I dint understand
2nd part of ur  question.

On 5/7/05, rajat swarup <rajats@xxxxxxxxx> wrote:
> Hi,
> I was looking at the ICMP message sending code in ipip.c and it uses
> following prototype for icmp_send(struct sk_buff*. void*).
> I had a few questions in mind regarding this method:
> Before calling this method obviously one is supposed to allocate
> memory for sk_buff structure and I think that alloc_skb() does it...is
> that correct?
> Also, the sk_buff structure is more of a collection of pointers ... so
> when you do alloc_skb do u have allocate some memory pointed to by
> these pointers ?
> I am operating in the netfilter hook in the NF_IP_FORWARD stage.
> 
> Any help will be appreciated!
> 
> Thanks and regards,
> Rajat.
> http://rajatswarup.blogspot.com/
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux