From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 00:38:11 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8E95106566B for ; Thu, 13 Oct 2011 00:38:11 +0000 (UTC) (envelope-from jonschipp@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4ADDB8FC0A for ; Thu, 13 Oct 2011 00:38:10 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so893596bkb.13 for ; Wed, 12 Oct 2011 17:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=KxgWFbtq44VaaUZUP2NiAokyEnzYHqLOZoB+vMf4018=; b=knwmbJSXS2tU4QHPUVAGarUeI+am8lID0J2yI83A0ZHPhpDc6DtbOGyWl5eY0LHWt2 QpSM42Rnbba1p8H7NQvbKoM1UttSraIZcM0Po42fxejsEgqf7M4KlsFb0Erne3cF5GLm wx4E5PcIs4SDTkP6yZ0V+DIGOOpDcmvKqy75U= MIME-Version: 1.0 Received: by 10.223.62.16 with SMTP id v16mr2042193fah.35.1318464469102; Wed, 12 Oct 2011 17:07:49 -0700 (PDT) Received: by 10.152.4.168 with HTTP; Wed, 12 Oct 2011 17:07:49 -0700 (PDT) Date: Wed, 12 Oct 2011 20:07:49 -0400 Message-ID: From: Jon Schipp To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: netstat -di - Idrop vs. Drop X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 00:38:11 -0000 On FreeBSD what's the difference between Drop and Idrop in the netstat output? $ netstat -di Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll Drop bge0* 1500 00:16:d4:e3:49:31 0 0 0 0 0 0 0 wpi0 2290 00:1b:77:86:2d:fa 0 53068 0 179587 3 0 0 The man page doesn't explain them. Also, does netstat get the drop count from the NIC or from a kernel buffer? For instance, if the NIC can't accept any more packets because of the lack of descriptors, will the packets lost be reported as one of the drop values in netstat? I ask because in Linux, ifconfig reads from /proc/net/dev and as for as I know, it drops only when the kernel buffer is full. So if the NIC wouldn't accept packets due to lack of descriptors you wouldn't know about it i.e. it hasn't made it's way into kernel memory. that and netstat on FreeBSD has the -B option for the BPF buffer stats, so right now it makes sense that netstat -di reports the drop count from the NIC/driver itself. Right/Wrong? Any help is appreciated, Thanks -- - Jon -- ------------------------------------------------------------------ VMB: 812-682-0231 Dubois County Linux User Group - http://www.dclinux.org Southern Indiana Computer Klub - http://sickbits.networklabs.org Bloomington FOOLS - http://www.bloomingtonfools.org/ BloomingLabs - http://www.bloominglabs.org ISSA-Kentuckiana - http://issa-kentuckiana.org GPG Key ID: 810903CB Key fingerprint = 0069 ED69 EABB DF84 5983 AD3C 6C20 BEFD 8109 03CB