NF_IP_POST_ROUTING hook & sk_buff struct

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

 



Hi,
if I write a NF_IP_POST_ROUTING hook (for kernel
2.6.21) to SNAT some TCP packets, can I suppose that
(for TCP packets) TCP Payload is contiguous to TCP
Header in struct sk_buff (payload pointer = skb->h->th
+ (skb->h->th->doff * 4) ) ? If not, is there a
function that assure me this result ?

I'm writing a NF_IP_POST_ROUTING hook for kernel
2.6.21, but it does right SNAT and checksum
calculation only for TCP packet without payload,
because TCP payload seems to be not contiguous to TCP
Header in struct sk_buff!

Thanks,
Maurizio


---
Maurizio


(o<                                    (@_
//\                                    //\
V_/_....Powered By Ubuntu GNU/Linux....V_/_


      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux