kern/57422: MT_TAG usage are not reported

Vincent Jardin vjardin at wanadoo.fr
Tue Sep 30 13:10:19 PDT 2003


>Number:         57422
>Category:       kern
>Synopsis:       MT_TAG usage are not reported
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 30 13:10:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Jardin <vjardin at 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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list