From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 11 07:35:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D958416A4D0 for ; Sun, 11 Jan 2004 07:35:42 -0800 (PST) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2A1F43D5C for ; Sun, 11 Jan 2004 07:35:36 -0800 (PST) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 6A88565213; Sun, 11 Jan 2004 15:35:35 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 49447-08; Sun, 11 Jan 2004 15:35:34 +0000 (GMT) Received: from saboteur.dek.spc.org (82-147-17-88.dsl.uk.rapidplay.com [82.147.17.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id CDFEC6520C; Sun, 11 Jan 2004 15:35:34 +0000 (GMT) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id E0F952E; Sun, 11 Jan 2004 15:35:33 +0000 (GMT) Date: Sun, 11 Jan 2004 15:35:33 +0000 From: Bruce M Simpson To: YACINE GHANJAOUI <001VA36979@stud.alakhawayn.ma> Message-ID: <20040111153533.GH17555@saboteur.dek.spc.org> Mail-Followup-To: YACINE GHANJAOUI <001VA36979@stud.alakhawayn.ma>, freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-hackers@freebsd.org Subject: Re: freebsd-hackers Digest, Vol 42, Issue 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 15:35:43 -0000 On Fri, Jan 09, 2004 at 03:57:07PM +0000, YACINE GHANJAOUI wrote: > when trying to intercept UDP packet after changing the protocol number > from 17 to a user one (99) in the ip_input.c file. when trying to > regenrate the packet after inserting some bit errors an error message > appears in the reciever telling that The udp checksum is incorrect even if > i just change the ip Header. > What do you think the problem is? You didn't read how UDP checksums were calculated, did you? Here is one free clue: Look at the definition of in_pseudo() and where it is used. Use the source. look! BMS