Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 14:03:33 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        FreeBSD Net <freebsd-net@freebsd.org>, attilio@freebsd.org
Subject:   netstat -i[d] violates PoLS
Message-ID:  <CAOtMX2iNkohdeQLp_cR2iNTpQ1qva3cp%2BpfpWDHwJ_KHKUTiAg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
"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.

OTOH, this behavior has been around for more than 4 years, and some
scripts may rely on it.  At the very least, the man page should be
updated to reflect r199803.

What do you think?  Does the likelihood of hardcoded scripts preclude
fixing this bug?

-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2iNkohdeQLp_cR2iNTpQ1qva3cp%2BpfpWDHwJ_KHKUTiAg>