From jardin@mercure.vincentjardin.net  Tue Sep 30 13:01:38 2003
Return-Path: <jardin@mercure.vincentjardin.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6F76B16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 13:01:38 -0700 (PDT)
Received: from mercure.vincentjardin.net (AVelizy-102-1-2-196.w217-128.abo.wanadoo.fr [217.128.206.196])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 67CCB43FEC
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 13:01:36 -0700 (PDT)
	(envelope-from jardin@mercure.vincentjardin.net)
Received: from mercure.vincentjardin.net (localhost [127.0.0.1])
	by mercure.vincentjardin.net (8.12.6/8.12.6) with ESMTP id h8UK1Vqj000747
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 22:01:31 +0200 (CEST)
	(envelope-from jardin@mercure.vincentjardin.net)
Received: (from jardin@localhost)
	by mercure.vincentjardin.net (8.12.6/8.12.6/Submit) id h8UK1ULg000746;
	Tue, 30 Sep 2003 22:01:30 +0200 (CEST)
Message-Id: <200309302001.h8UK1ULg000746@mercure.vincentjardin.net>
Date: Tue, 30 Sep 2003 22:01:30 +0200 (CEST)
From: Vincent Jardin <vjardin@wanadoo.fr>
Reply-To: Vincent Jardin <vjardin@wanadoo.fr>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: MT_TAG usage are not reported
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57422
>Category:       kern
>Synopsis:       MT_TAG usage are not reported
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 30 13:10:15 PDT 2003
>Closed-Date:    Tue Feb 17 08:21:36 PST 2004
>Last-Modified:  Tue Feb 17 08:21:36 PST 2004
>Originator:     Vincent Jardin <vjardin@wanadoo.fr>
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
None
>Environment:
System: FreeBSD mercure.vincentjardin.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue Sep 23 02:11:09 CEST 2003 jardin@mercure.vincentjardin.net:/usr/src/sys/compile/MERCURE i386

>Description:
	netstat -m does not report the mbufs that have the type MT_TAG.

One need only to add 
	{ MT_TAG,	"volatile metadata" },
into netstat/mbuf.c:

mbtypenames[] = {
	{ MT_DATA,	"data" },
	{ MT_OOBDATA,	"oob data" },
	{ MT_CONTROL,	"ancillary data" },
	{ MT_HEADER,	"packet headers" },

>How-To-Repeat:
	netstat -m
>Fix:
RCS file: /home/ncvs/src/usr.bin/netstat/mbuf.c,v
retrieving revision 1.32
diff -u -r1.32 mbuf.c
--- mbuf.c      15 May 2003 19:05:28 -0000      1.32
+++ mbuf.c      30 Sep 2003 19:59:53 -0000
@@ -88,6 +88,7 @@
 #ifdef MT_IFADDR
        { MT_IFADDR,    "interface addresses" },                /* XXX */
 #endif
+       { MT_TAG,       "volatile metadata" },
        { 0, 0 }
 };


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cperciva 
State-Changed-When: Tue Feb 17 08:19:53 PST 2004 
State-Changed-Why:  
The fix looks reasonable, but mlaier's commit to sys/mbuf.h 
three days ago made MT_TAG (and thus this PR) obsolete. 


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