diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-07-09 09:50:15 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-07-09 09:50:15 +0000 |
commit | 5b7cb97c2b6f73e3a9fdc9e7e3d8771e29be9889 (patch) | |
tree | ef65cdea87ebd2ddc7dce18e0f6bd4aa6c63c183 /usr.bin | |
parent | 5da0521fcea9b7bf34635529187eddf4cfca1cba (diff) | |
download | src-5b7cb97c2b6f73e3a9fdc9e7e3d8771e29be9889.tar.gz src-5b7cb97c2b6f73e3a9fdc9e7e3d8771e29be9889.zip |
Migrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPU
counters.
Notes
Notes:
svn path=/head/; revision=253084
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/inet.c | 8 | ||||
-rw-r--r-- | usr.bin/netstat/mroute.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 1df1bfa665f2..f937392a4b65 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -756,7 +756,7 @@ udp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) return; } } else - kread(off, &udpstat, len); + kread_counters(off, &udpstat, len); printf("%s:\n", name); #define p(f, m) if (udpstat.f || sflag <= 1) \ @@ -923,7 +923,7 @@ arp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) return; } } else - kread(off, &arpstat, len); + kread_counters(off, &arpstat, len); printf("%s:\n", name); @@ -1010,7 +1010,7 @@ icmp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) return; } } else - kread(off, &icmpstat, len); + kread_counters(off, &icmpstat, len); printf("%s:\n", name); @@ -1217,7 +1217,7 @@ pim_stats(u_long off __unused, const char *name, int af1 __unused, } else { if (off == 0) return; - kread(off, &pimstat, len); + kread_counters(off, &pimstat, len); } printf("%s:\n", name); diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c index b8e5d6da7b63..7cade4e906a1 100644 --- a/usr.bin/netstat/mroute.c +++ b/usr.bin/netstat/mroute.c @@ -350,7 +350,7 @@ mrt_stats(u_long mstaddr) return; } } else - kread(mstaddr, (char *)&mrtstat, sizeof(mrtstat)); + kread_counters(mstaddr, &mrtstat, len); printf("IPv4 multicast forwarding:\n"); |