From owner-freebsd-ipfw@FreeBSD.ORG Fri Nov 26 14:55:55 2010 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D71D106566B for ; Fri, 26 Nov 2010 14:55:55 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 203D28FC12 for ; Fri, 26 Nov 2010 14:55:54 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E71CC73098; Fri, 26 Nov 2010 16:09:09 +0100 (CET) Date: Fri, 26 Nov 2010 16:09:09 +0100 From: Luigi Rizzo To: nangergong Message-ID: <20101126150909.GA93106@onelab2.iet.unipi.it> References: <20101125181825.GA79947@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-ipfw@freebsd.org Subject: Re: two questions:1 relationship between dummynet and wireshark 2 how to add latency for each packet to be sent X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2010 14:55:55 -0000 On Fri, Nov 26, 2010 at 02:43:12PM +0000, nangergong wrote: > Hi??? > > Thank you so much for your reply. I used the windows version of > dummynet/IPFW, so is it the same that wireshark will intercept > incoming traffic before dummynet, and outgoing traffic after dummynet? Coz it all depends on where you run dummynet and where you run wireshark (is there a windows version of it ?) All i can tell you is that - on FreeBSD and linux, dummynet intercepts packets at the IP level, and wireshark sits just on top of the device driver (using bpf or similar mechanisms); - on windows, it acts as a miniport driver (so, it probably gets the full packet including MAC headers), but i have no idea where wireshark works -- it might be a miniport driver as well, in which case the order of loading might be relevant cheers luigi