summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-08-07 18:21:21 +0000
committerhsu <hsu@FreeBSD.org>2003-08-07 18:21:21 +0000
commit27325403c64a9b3337b47535dc2680886c4064fe (patch)
treea145ae69f3bb698396cff2cc32af61aad54348e1 /usr.bin/netstat/main.c
parent61eb7602bf1a4b7c495cf4c605e2345b1f8dfa61 (diff)
downloadFreeBSD-src-27325403c64a9b3337b47535dc2680886c4064fe.zip
FreeBSD-src-27325403c64a9b3337b47535dc2680886c4064fe.tar.gz
1. Add support for printing PIM-related statistics with
netstat -s -p pim 2. Print information about the bandwidth meters installed in the kernel with netstat -g Submitted by: Pavlin Radoslavov <pavlin@icir.org>
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index ac70c41..145f740 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -168,6 +168,8 @@ struct protox {
#endif
{ -1, -1, 1, 0,
bdg_stats, NULL, "bdg", 1 /* bridging... */ },
+ { -1, -1, 1, protopr,
+ pim_stats, NULL, "pim", IPPROTO_PIM },
{ -1, -1, 0, 0,
0, NULL, 0, 0 }
};
OpenPOWER on IntegriCloud