On 5/7/05, kalkov <kalkotiv@xxxxxxxxx> wrote: > 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: > > 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? Please Disregard that! > > 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. > > So would I need to fill in the MAC layer entries also into the buffer that I allocate if I need to send ICMP messages? I want to use icmp_send() method. Thanks a lot! -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/