Date: Tue, 30 Sep 2003 22:01:30 +0200 (CEST) From: Vincent Jardin <vjardin@wanadoo.fr> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/57422: MT_TAG usage are not reported Message-ID: <200309302001.h8UK1ULg000746@mercure.vincentjardin.net> Resent-Message-ID: <200309302010.h8UKAFB8051186@freefall.freebsd.org>
index | next in thread | raw e-mail
>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@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:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309302001.h8UK1ULg000746>
