From owner-freebsd-net@FreeBSD.ORG Fri Feb 20 14:05:42 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DC6F16A4CE for ; Fri, 20 Feb 2004 14:05:42 -0800 (PST) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 607FC43D2D for ; Fri, 20 Feb 2004 14:05:41 -0800 (PST) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i1KM5cQE053640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Feb 2004 01:05:38 +0300 (MSK) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i1KM5bRd053639; Sat, 21 Feb 2004 01:05:37 +0300 (MSK) Date: Sat, 21 Feb 2004 01:05:36 +0300 From: Gleb Smirnoff To: Arunav Roy Message-ID: <20040220220536.GD53136@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Arunav Roy , freebsd-net@freebsd.org References: <20040220195222.96099.qmail@web60103.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20040220195222.96099.qmail@web60103.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: freebsd-net@freebsd.org Subject: Re: Request For Some help On Netgraph X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 22:05:42 -0000 On Fri, Feb 20, 2004 at 11:52:22AM -0800, Arunav Roy wrote: A> I have tried out a few things and I have faced A> problems in few things such as : A> 1) How to print the packet information on the konsole A> when the packet passes through the node. Use printf(). :) A> 2) How can I make changes in the Packet header Make sure to read mbuf(9) manpage. Look into source of nodes, which are shipped with FreeBSD. They are really nice examples of netgraph code. A> 3) What are the different types of errors which we A> can induce in TCP/IP connection A> to test the reliability of TCP/IP What kind of errors do you mean? There can be definitely two types: - normal network errors, such as packet loss, delay, duplication, checksum mismatch and else... - errors in particular implementations of TCP What kind do you want to simulate? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE