From owner-freebsd-net@FreeBSD.ORG Mon Nov 16 23:39:01 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25F3B1065679; Mon, 16 Nov 2009 23:39:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8D74F8FC1A; Mon, 16 Nov 2009 23:39:00 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1146316qwb.7 for ; Mon, 16 Nov 2009 15:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=U6G0ZWj2rZi3OvMMm4dczGIyN8VrENULkRLrEphmq2w=; b=qhvO9wri22cd8tQ/kOQb+KcHTPNg4zUplL1VmKvTClhd1yK0ucmXN859b30lpgB74G 6Xyfow9LEcYxAzeLGUVbxWaJfVA4hGk7/jz8aQTQ6V+K1FtGw8myrzj7p+pc2u2eBkJf DtnAFalTq7mG/lpAmnGBiiBOCiVxC5uXLfsJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=gJkeSiCs3m0SzgmPGOtPLM16xeSvz7J9CSpctqWxymdiSnBn1jCKQ8Yr8G/22ZI2MY o7TTYmN1w7UBxFntXWMJD8dbEIgA9OnxEzKEmMOFYxCF1HEGmrdYuKkTJB0RH6TUSm/O f0q02l9WhDa+/xlIfnXNaIR1VXpYcPsBiJ664= Received: by 10.224.117.76 with SMTP id p12mr5185307qaq.22.1258414739542; Mon, 16 Nov 2009 15:38:59 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 20sm1897966qyk.5.2009.11.16.15.38.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Nov 2009 15:38:58 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 16 Nov 2009 15:38:28 -0800 From: Pyun YongHyeon Date: Mon, 16 Nov 2009 15:38:28 -0800 To: Attilio Rao Message-ID: <20091116233828.GG1262@michelle.cdnetworks.com> References: <3bbf2fe10911160715m34fc0ba4hc13af02541405491@mail.gmail.com> <20091116182423.GD1262@michelle.cdnetworks.com> <3bbf2fe10911161404s4c5870a4pe0afbb890e0fdde2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bbf2fe10911161404s4c5870a4pe0afbb890e0fdde2@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Bruce Evans , John Baldwin Subject: Re: [PATCH] Add idrop report to netstat X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 23:39:01 -0000 On Mon, Nov 16, 2009 at 11:04:20PM +0100, Attilio Rao wrote: > 2009/11/16 Pyun YongHyeon : > > On Mon, Nov 16, 2009 at 04:15:09PM +0100, Attilio Rao wrote: > >> [Please CC me as I'm not subscribed to -net@] > >> > >> This patch allows to show the informations about packets droped on > >> input for interfaces on netstat: > >> http://www.freebsd.org/~attilio/Sandvine/STABLE_8/idrops/idrops.diff > >> > >> This patch as been contributed back from Sandvine Incorporated. > >> Comments, reviews and testing are welcome. > >> > > > > Doesn't -d of netstat(1) show the same information? > > Am I wrong or "-d" prints the drops on the output path? > The patch provides information on the input drops. > struct if_data { /* generic interface information */ u_char ifi_type; /* ethernet, tokenring, etc */ u_char ifi_physical; /* e.g., AUI, Thinnet, 10base-T, etc */ [...] u_long ifi_iqdrops; /* dropped on input, this interface */ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ u_long ifi_noproto; /* destined for unsupported protocol */ u_long ifi_hwassist; /* HW offload capabilities, see IFCAP */ time_t ifi_epoch; /* uptime at attach or stat reset */ struct timeval ifi_lastchange; /* time of last administrative change */ }; > Thanks, > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein