On Friday 2009-01-02 23:47, Giacomo wrote: >Hi to everybody. > >Implementing a kernel module that changes an IP or port in a packet in >OUTPUT (realizing the so >called OUTPUT DNAT), I have to recalculate the checksum of the packet. > >It is not clear to me if I have to use tcp_v4_check or csum_tcpudp_magic. See the RAWDNAT branch of Xtables-addons where this is already done (at least I hope it's correct - have not done much with it lately): http://dev.medozas.de/gitweb.cgi?p=xtables-addons;a=blob;f=extensions/xt_RAWNAT.c;hb=RAWNAT#l73 -- 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