summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-02-24 21:42:21 +0000
committerbms <bms@FreeBSD.org>2007-02-24 21:42:21 +0000
commite7c3371071485a99f1369f7f455900f98d469bf2 (patch)
tree18da55138acc866a3b571ac8db7e88ad6a8f4f12 /usr.bin/netstat
parent7466d6dfe52b45fae16c1808ffb3eeab9d3f2fff (diff)
downloadFreeBSD-src-e7c3371071485a99f1369f7f455900f98d469bf2.zip
FreeBSD-src-e7c3371071485a99f1369f7f455900f98d469bf2.tar.gz
Add comments about where netstat is using KVM to read things which
should really be available via sysctl for a running system.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/mroute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c
index 728fa9d..95669f0 100644
--- a/usr.bin/netstat/mroute.c
+++ b/usr.bin/netstat/mroute.c
@@ -143,6 +143,7 @@ mroutepr(u_long mfcaddr, u_long vifaddr)
for (i = 0; i < MFCTBLSIZ; ++i) {
m = mfctable[i];
while(m) {
+ /* XXX KVM */
kread((u_long)m, (char *)&mfc, sizeof mfc);
if (!banner_printed) {
@@ -170,6 +171,7 @@ mroutepr(u_long mfcaddr, u_long vifaddr)
bwm = mfc.mfc_bw_meter;
while (bwm) {
+ /* XXX KVM */
kread((u_long)bwm, (char *)&bw_meter,
sizeof bw_meter);
print_bw_meter(&bw_meter,
@@ -283,7 +285,7 @@ mrt_stats(u_long mstaddr)
"the running system.\n");
return;
}
-
+ /* XXX KVM */
kread(mstaddr, (char *)&mrtstat, sizeof(mrtstat));
}
printf("IPv4 multicast forwarding:\n");
OpenPOWER on IntegriCloud