diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-04-20 11:36:20 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-04-20 11:36:20 +0000 |
commit | 062eb201297d2345e49cc001cec4a1a69dc914b8 (patch) | |
tree | da4daf6c50a0e69807044e9d414e869d9e6ad60c /usr.bin/netstat | |
parent | e0300bd3dc458366e94eb1082d0c746b3cad14ce (diff) |
The rip6 checksum errors are accounted per socket. So the no socket
errors include these, do not subtract both from delivered. Avoids
an underflow in the rip6 delivered counter.
OK deraadt@ claudio@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/inet6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 987becb808f..f1f8dedcd68 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet6.c,v 1.52 2017/01/21 11:32:04 guenther Exp $ */ +/* $OpenBSD: inet6.c,v 1.53 2019/04/20 11:36:19 bluhm Exp $ */ /* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ /* * Copyright (c) 1983, 1988, 1993 @@ -855,7 +855,6 @@ rip6_stats(char *name) p(rip6s_fullsock, "\t%llu message%s dropped due to full socket buffers\n"); delivered = rip6stat.rip6s_ipackets - - rip6stat.rip6s_badsum - rip6stat.rip6s_nosock - rip6stat.rip6s_nosockmcast - rip6stat.rip6s_fullsock; |