mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
systat: improve reporting of UDP statistics
Report the undelivered multi and broadcast UDP packets separately.
Reviewed by: rrs, cc
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51884
(cherry picked from commit b9de52a0ec)
This commit is contained in:
1 parent
fd86cd7a7f
commit
19bb9fecba
1 file changed
+12
-8
+12
-8
@@ -85,9 +85,10 @@ static struct stat curstat, initstat, oldstat;
|
||||
13999999999 packets forwarded 999999999 - no checksum
|
||||
14999999999 - unreachable dests 999999999 - invalid length
|
||||
15999999999 - redirects generated 999999999 - no socket for dest port
|
||||
16999999999 option errors 999999999 - no socket for broadcast
|
||||
17999999999 unwanted multicasts 999999999 - socket buffer full
|
||||
18999999999 delivered to upper layer 999999999 total output packets
|
||||
16999999999 option errors 999999999 - no socket for broadcast
|
||||
17999999999 unwanted multicasts 999999999 - no socket for multicast
|
||||
18999999999 delivered to upper layer 999999999 - socket buffer full
|
||||
19999999999 999999999 total output packets
|
||||
--0123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
--0 1 2 3 4 5 6 7
|
||||
*/
|
||||
@@ -130,9 +131,10 @@ labelip(void)
|
||||
L(13, "packets forwarded"); R(13, "- no checksum");
|
||||
L(14, "- unreachable dests"); R(14, "- invalid length");
|
||||
L(15, "- redirects generated"); R(15, "- no socket for dest port");
|
||||
L(16, "option errors"); R(16, "- no socket for broadcast");
|
||||
L(17, "unwanted multicasts"); R(17, "- socket buffer full");
|
||||
L(18, "delivered to upper layer"); R(18, "total output packets");
|
||||
L(16, "option errors"); R(16, " - no socket for broadcast");
|
||||
L(17, "unwanted multicasts"); R(17, " - no socket for multicast");
|
||||
L(18, "delivered to upper layer"); R(18, "- socket buffer full");
|
||||
R(19, "total output packets");
|
||||
#undef L
|
||||
#undef R
|
||||
}
|
||||
@@ -192,6 +194,7 @@ domode(struct stat *ret)
|
||||
DO(u.udps_badlen);
|
||||
DO(u.udps_noport);
|
||||
DO(u.udps_noportbcast);
|
||||
DO(u.udps_noportmcast);
|
||||
DO(u.udps_fullsock);
|
||||
DO(u.udps_opackets);
|
||||
#undef DO
|
||||
@@ -240,9 +243,10 @@ showip(void)
|
||||
DO(i.ips_badoptions, 16, 0);
|
||||
DO(u.udps_noportbcast, 16, 35);
|
||||
DO(i.ips_notmember, 17, 0);
|
||||
DO(u.udps_fullsock, 17, 35);
|
||||
DO(u.udps_noportmcast, 17, 35);
|
||||
DO(i.ips_delivered, 18, 0);
|
||||
DO(u.udps_opackets, 18, 35);
|
||||
DO(u.udps_fullsock, 18, 35);
|
||||
DO(u.udps_opackets, 19, 35);
|
||||
#undef DO
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user