Date: Mon, 16 Nov 2009 15:38:28 -0800 From: Pyun YongHyeon <pyunyh@gmail.com> To: Attilio Rao <attilio@freebsd.org> Cc: freebsd-net@freebsd.org, Bruce Evans <bde@freebsd.org>, John Baldwin <jhb@freebsd.org> Subject: Re: [PATCH] Add idrop report to netstat Message-ID: <20091116233828.GG1262@michelle.cdnetworks.com> In-Reply-To: <3bbf2fe10911161404s4c5870a4pe0afbb890e0fdde2@mail.gmail.com> References: <3bbf2fe10911160715m34fc0ba4hc13af02541405491@mail.gmail.com> <20091116182423.GD1262@michelle.cdnetworks.com> <3bbf2fe10911161404s4c5870a4pe0afbb890e0fdde2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 16, 2009 at 11:04:20PM +0100, Attilio Rao wrote: > 2009/11/16 Pyun YongHyeon <pyunyh@gmail.com>: > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091116233828.GG1262>