From jdc@koitsu.dyndns.org  Mon Mar 12 01:20:53 2012
Return-Path: <jdc@koitsu.dyndns.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 91170106564A
	for <freebsd-gnats-submit@freebsd.org>; Mon, 12 Mar 2012 01:20:53 +0000 (UTC)
	(envelope-from jdc@koitsu.dyndns.org)
Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17])
	by mx1.freebsd.org (Postfix) with ESMTP id 3D3FA8FC0A
	for <freebsd-gnats-submit@freebsd.org>; Mon, 12 Mar 2012 01:20:52 +0000 (UTC)
Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19])
	by qmta10.westchester.pa.mail.comcast.net with comcast
	id kRCJ1i0040QuhwU5ARKm1y; Mon, 12 Mar 2012 01:19:46 +0000
Received: from koitsu.dyndns.org ([67.180.84.87])
	by omta02.westchester.pa.mail.comcast.net with comcast
	id kRKl1i01K1t3BNj3NRKmG4; Mon, 12 Mar 2012 01:19:46 +0000
Received: by icarus.home.lan (Postfix, from userid 1000)
	id 67A53102C1E; Sun, 11 Mar 2012 18:19:44 -0700 (PDT)
Message-Id: <20120312011944.67A53102C1E@icarus.home.lan>
Date: Sun, 11 Mar 2012 18:19:44 -0700 (PDT)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: periodic/daily/420.status-network should show dropped packets
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         165956
>Category:       conf
>Synopsis:       periodic/daily/420.status-network should show dropped packets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 12 01:30:10 UTC 2012
>Closed-Date:    Fri Jun 29 15:23:12 UTC 2012
>Last-Modified:  Fri Jun 29 15:23:12 UTC 2012
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD icarus.home.lan 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Feb 10 17:43:50 PST 2012 root@icarus.home.lan:/usr/obj/usr/src/sys/X7SBA_RELENG_8_amd64 amd64
>Description:
	Sorry if I got the Category wrong -- I can never remember what
	to choose for periodic scripts!

	The nightly periodic script for network interface statistics,
	daily/420.status-network, uses "netstat -in".  This is not the
	same as dropped packets caused by use of ipfw or pf; these types
	of dropped packets would be caused by Ethernet problems (cabling
	or NIC driver issues) or similar anomalies on that level.

	I propose that -d be added to the netstat flag list, to give more
	visibility into problems.
>How-To-Repeat:
	n/a
>Fix:
	Change periodic/daily/420.status-network as documented in
	Description.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Mon May 7 15:41:42 UTC 2012 
State-Changed-Why:  
Patch committed to HEAD. 


Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Mon May 7 15:41:42 UTC 2012 
Responsible-Changed-Why:  
Patch committed to HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165956 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/165956: commit references a PR
Date: Mon,  7 May 2012 15:41:40 +0000 (UTC)

 Author: jhb
 Date: Mon May  7 15:41:31 2012
 New Revision: 235132
 URL: http://svn.freebsd.org/changeset/base/235132
 
 Log:
   Display dropped transmit packets in the daily network interface output.
   
   PR:		conf/165956
   Submitted by:	Jeremy Chadwick
   MFC after:	1 week
 
 Modified:
   head/etc/periodic/daily/420.status-network
 
 Modified: head/etc/periodic/daily/420.status-network
 ==============================================================================
 --- head/etc/periodic/daily/420.status-network	Mon May  7 15:30:53 2012	(r235131)
 +++ head/etc/periodic/daily/420.status-network	Mon May  7 15:41:31 2012	(r235132)
 @@ -18,9 +18,9 @@ case "$daily_status_network_enable" in
  
  	case "$daily_status_network_usedns" in
  	    [Yy][Ee][Ss])
 -		netstat -i && rc=0 || rc=3;;
 +		netstat -id && rc=0 || rc=3;;
  	    *)
 -		netstat -in && rc=0 || rc=3;;
 +		netstat -idn && rc=0 || rc=3;;
  	esac;;
  
      *)  rc=0;;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Fri Jun 29 15:21:55 UTC 2012 
State-Changed-Why:  
Merged to 8 and 9. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165956 
>Unformatted:
