Defragmentation in Netfilter Hook

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

 



The ip_conntrack module makes an automatic defragmentation but I need modify the packets (padding bytes and change the ip protocol) and the conntrack have a rare behavior with TCP connections. The Netfilter Howto Documment (Netfilter Hooks For Tunnel Writers) it recommended to do:

nf_conntrack_put(skb->nfct);
skb->nfct = 0;

But it don't resolves my problem, so I'm trying to avoid use ip_conntrack module cause I use it only for defragmentation. The point is: how I can do a manualy defragmentation in netfilter hook?

The funtion ip_defrag return a NULL pointer if the packet is not complete and I don't know what do with the packet: I should enqueue it? How?

I appreciate any help, Thanks.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux