From owner-freebsd-net@FreeBSD.ORG Mon Mar 31 20:17:28 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A852D68; Mon, 31 Mar 2014 20:17:28 +0000 (UTC) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D4A80FBE; Mon, 31 Mar 2014 20:17:27 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id d1so4008544wiv.15 for ; Mon, 31 Mar 2014 13:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=f6+1gM4mnr42a+XWAS3IxQ9tHwP0oHuQJ/ry33JIv5Q=; b=BSydAuMQMCi1Fu3V91+2spWoAX7l/mTgHgY/8V1Y0lDutIcdn1FV/VN/L8EYT3UD+9 loOBel0YKPhwGzCOT+k5zfR0NiNiOD4Uc6Uq+RfwDUh4MjSq1lbJ4ghAO8oxU61nfhx3 Z7FX4+41ZEMsiZ751O9GUPxh4sG7fBDfBS89KYY5UFEnfDTXHDjaL05H3hrd5mFTVlQp g9q+187Rz/8SoEkTuMtqF7E6o8V/TkRP0ky2gzh6yqoW6DBfPq/46qvkGnTquJWsyCQM tVvKPE3eSute87y270Fr5c0dKb2MQGoX3EWEU92rcMBcFQFhqdT/6Zzh1bnEBsMku40Y ac8w== MIME-Version: 1.0 X-Received: by 10.194.190.42 with SMTP id gn10mr17399472wjc.9.1396297045841; Mon, 31 Mar 2014 13:17:25 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.217.61.196 with HTTP; Mon, 31 Mar 2014 13:17:25 -0700 (PDT) In-Reply-To: References: Date: Mon, 31 Mar 2014 22:17:25 +0200 X-Google-Sender-Auth: 3Egbo1-ZT-NCj_ZSyf3NGFHY73I Message-ID: Subject: Re: netstat -i[d] violates PoLS From: Attilio Rao To: Alan Somers Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2014 20:17:28 -0000 On Mon, Mar 31, 2014 at 10:03 PM, Alan Somers wrote: > "netstat -i" prints dropped output packets iff you also use "-d". > Starting with r199803 on 2009-11-25, "netstat -i" prints dropped input > packets regardless of the "-d" flags. That is a PoLS violation, IMHO. > I think that the "-d" flag should control printing of dropped input > packets as well as dropped output packets. I don't have any time to look into this, so please fix it as you prefer for the time being. Attilio -- Peace can only be achieved by understanding - A. Einstein