Re: sk_buff allocation

2001-06-12 Thread Emmanuel Varagnat
Alexey Vyskubov wrote: > > Why don't you use netfilter hooks? Write your hook for NF_IP_POST_ROUTING; it > will receive sk_buff **pskb, so you can completely replace old skbuff with new. Because, it doesn't seems to fit my needs. The hardware header must present. But I could have missed somethi

Re: sk_buff allocation

2001-06-12 Thread Alexey Vyskubov
> I'm writing a module that is able to modify outgoing packets. > This is done by registering a new entry in ptype_all. > But my problem is that in dev_queue_xmit_nit the sk_buff is > cloned and that my function get this clone. So my modification > on skb->data isn't take into account by the ether