From: "OpenSource Dev" Subject: Re: Re[2]: how to update payload using QUEUE Date: Tue, 11 Nov 2008 02:54:43 -0600 Message-ID: References: <1189733016.20081110095859@yandex.ru> <69704515.20081111095600@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: "Kuzin Andrey" Return-path: Received: from ug-out-1314.google.com ([66.249.92.171]:19839 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbYKKIyp (ORCPT ); Tue, 11 Nov 2008 03:54:45 -0500 Received: by ug-out-1314.google.com with SMTP id 39so662158ugf.37 for ; Tue, 11 Nov 2008 00:54:43 -0800 (PST) In-Reply-To: <69704515.20081111095600@yandex.ru> Content-Disposition: inline Sender: netfilter-devel-owner@vger.kernel.org List-ID: > I found some useful links for you ! > > Here use checksum compute for tcp and ip packets (some code from TCPDUMP): > http://code.google.com/p/quefuzz/source/browse/trunk/quefuzz.c?r=5 This really works great. I will sure try some other methods too and try to find out which one is better. Right now I can ping two machines with modified ICMP payload and new checksum value :) But TCP is not working yet. I am pretty sure I have some code mixup somewhere. Thanks for your help! Bikrant > > Here use another cksum() function: > https://trac.luffy.cx/udpproxy/browser/src > https://trac.luffy.cx/udpproxy/browser/src/cksum.c > https://trac.luffy.cx/udpproxy/browser/src/proxy.c > > Question is what function calculate checksum faster and rigth for > nf_queue ?! > > May be this help to you ! > Write something about that. I also need this experience, but > i don't have any time for experiments now. > > Any comments from nfq developers also appreciated. > Why your nfq_set_verdict with payload don't compute checksum > automatically ???!!! > Google say what whole the world have difficults with that.