lkml.org 
[lkml]   [2001]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: sk_buff allocation
From
> 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 ethernet driver.

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.

--
Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.039 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site