Subject: misc/18816: Calculation not spelled correctly in netstat output
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sm@resistor.net>
List: netbsd-bugs
Date: 10/26/2002 09:55:51
>Number: 18816
>Category: misc
>Synopsis: Calculation not spelled correctly in netstat output
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 26 09:56:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: sm
>Release: 1.6
>Organization:
>Environment:
NetBSD sm.private 1.6 NetBSD 1.6 (SM) #2: Fri Sep 13 20:20:47 PDT 2002 sm@sm.private:/usr/src/sys/arch/i386/compile/SM i386
>Description:
The word calculation (under rip6:) is misspelled in the output of netstat -s It shows up as:
0 checksum calcurations on inbound
>How-To-Repeat:
%netstat -s
ip:
1803109 total packets received
0 bad header checksums
0 with size smaller than minimum
0 with data size < data length
0 with length > max ip packet size
0 with header length < data size
0 with data length < header length
0 with bad options
0 with incorrect version number
0 fragments received
0 fragments dropped (dup or out of space)
0 malformed fragments dropped
0 fragments dropped after timeout
0 packets reassembled ok
1788002 packets for this host
0 packets for unknown/unsupported protocol
0 packets forwarded (0 packets fast forwarded)
0 packets not forwardable
0 redirects sent
1961422 packets sent from this host
42 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
0 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
0 datagrams with bad address in header
icmp:
81 calls to icmp_error
0 errors not generated because old message was icmp
Output histogram:
destination unreachable: 81
1 message with bad code fields
0 messages < minimum length
0 bad checksums
0 messages with bad length
Input histogram:
destination unreachable: 1015
time exceeded: 36
0 message responses generated
0 path MTU changes
igmp:
0 messages received
0 messages received with too few bytes
0 messages received with bad checksum
0 membership queries received
0 membership queries received with invalid field(s)
0 membership reports received
0 membership reports received with invalid field(s)
0 membership reports received for groups to which we belong
0 membership reports sent
tcp:
1945281 packets sent
375560 data packets (182652724 bytes)
608 data packets (306924 bytes) retransmitted
5812 ack-only packets (1571947 delayed)
0 URG only packets
0 window probe packets
1549542 window update packets
13759 control packets
0 send attempts resulted in self-quench
1773776 packets received
203512 acks (for 182602050 bytes)
8052 duplicate acks
0 acks for unsent data
1574779 packets (2121818410 bytes) received in-sequence
20 completely duplicate packets (744 bytes)
0 old duplicate packets
0 packets with some dup. data (0 bytes duped)
29 out-of-order packets (152 bytes)
0 packets (0 bytes) of data after window
0 window probes
20 window update packets
0 packets received after close
0 discarded for bad checksums
0 discarded for bad header offset fields
0 discarded because packet too short
6787 connection requests
1165 connection accepts
1230 connections established (including accepts)
7973 connections closed (including 1126 drops)
0 embryonic connections dropped
46494 segments updated rtt (of 53623 attempts)
6941 retransmit timeouts
1 connection dropped by rexmit timeout
0 persist timeouts (resulting in 0 dropped connections)
6 keepalive timeouts
6 keepalive probes sent
0 connections dropped by keepalive
45 correct ACK header predictions
1559745 correct data packet header predictions
2398 PCB hash misses
0 dropped due to no socket
1 connection drained due to memory shortage
0 bad connection attempts
1166 SYN cache entries added
0 hash collisions
1165 completed
0 aborted (no space to build PCB)
0 timed out
0 dropped due to overflow
0 dropped due to bucket overflow
1 dropped due to RST
0 dropped due to ICMP unreachable
27 SYN,ACKs retransmitted
3 duplicate SYNs received for entries already in the cache
0 SYNs dropped (no route or no space)
udp:
13175 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
81 dropped due to no socket
0 broadcast/multicast datagrams dropped due to no socket
0 dropped due to full socket buffers
13094 delivered
11732 PCB hash misses
16080 datagrams output
ipsec:
0 inbound packets processed successfully
0 inbound packets violated process security policy
0 inbound packets with no SA available
0 invalid inbound packets
0 inbound packets failed due to insufficient memory
0 inbound packets failed getting SPI
0 inbound packets failed on AH replay check
0 inbound packets failed on ESP replay check
0 inbound packets considered authentic
0 inbound packets failed on authentication
0 outbound packets processed successfully
0 outbound packets violated process security policy
0 outbound packets with no SA available
0 invalid outbound packets
0 outbound packets failed due to insufficient memory
0 outbound packets with no route
5678566 SPD cache lookups
5678542 SPD cache misses
ip6:
24 total packets received
0 with size smaller than minimum
0 with data size < data length
0 with bad options
0 with incorrect version number
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 fragments that exceeded limit
0 packets reassembled ok
12 packets for this host
0 packets forwarded
0 packets not forwardable
0 redirects sent
27 packets sent from this host
0 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
0 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
2 packets that violated scope rules
0 multicast packets which we don't join
Input packet histogram:
UDP: 12
ICMP6: 12
Mbuf statistics:
23 one mbufs
two or more mbuf:
lo0 = 1
0 one ext mbufs
0 two or more ext mbufs
0 packets whose headers are not continuous
0 tunneling packets that can't find gif
0 packets discarded due to too many headers
0 failures of source address selection
source addresses on an outgoing I/F
12 node-locals
source addresses of same scope
12 node-locals
0 forward cache hit
0 forward cache miss
icmp6:
12 calls to icmp6_error
0 errors not generated because old message was icmp6 or so
0 errors not generated because of rate limitation
Output packet histogram:
unreach: 12
multicast listener report: 3
neighbor solicitation: 2
0 messages with bad code fields
0 messages < minimum length
0 bad checksums
0 messages with bad length
Input packet histogram:
unreach: 12
Histogram of error messages to be generated:
0 no route
0 administratively prohibited
0 beyond scope
0 address unreachable
12 port unreachable
0 packet too big
0 time exceed transit
0 time exceed reassembly
0 erroneous header field
0 unrecognized next header
0 unrecognized option
0 redirect
0 unknown
0 message responses generated
0 messages with too many ND options
0 messages with bad ND options
0 bad neighbor solicitation messages
0 bad neighbor advertisement messages
0 bad router solicitation messages
0 bad router advertisement messages
0 bad redirect messages
0 path MTU changes
udp6:
12 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
0 with no checksum
12 dropped due to no socket
0 multicast datagrams dropped due to no socket
0 dropped due to full socket buffers
0 delivered
12 datagrams output
ipsec6:
0 inbound packets processed successfully
0 inbound packets violated process security policy
0 inbound packets with no SA available
0 invalid inbound packets
0 inbound packets failed due to insufficient memory
0 inbound packets failed getting SPI
0 inbound packets failed on AH replay check
0 inbound packets failed on ESP replay check
0 inbound packets considered authentic
0 inbound packets failed on authentication
0 outbound packets processed successfully
0 outbound packets violated process security policy
0 outbound packets with no SA available
0 invalid outbound packets
0 outbound packets failed due to insufficient memory
0 outbound packets with no route
12 SPD cache lookups
12 SPD cache misses
pim6:
0 messages received
0 messages received with too few bytes
0 messages received with bad checksum
0 messages received with bad version
0 registers received
0 bad registers received
0 registers sent
rip6:
0 messages received
0 checksum calcurations on inbound
0 messages with bad checksum
0 messages dropped due to no socket
0 multicast messages dropped due to no socket
0 messages dropped due to full socket buffers
0 delivered
0 datagrams output
arp:
135 packets sent
117 reply packets
18 request packets
4612 packets received
11 reply packets
4601 valid request packets
4585 broadcast/multicast packets
0 packets with unknown protocol type
0 packets with bad (short) length
0 packets with null target IP address
0 packets with null source IP address
0 could not be mapped to an interface
0 packets sourced from a local hardware address
0 packets with a broadcast source hardware address
0 duplicates for a local IP address
0 attempts to overwrite a static entry
0 packets received on wrong interface
0 entrys overwritten
0 changes in hardware address length
11 packets deferred pending ARP resolution
11 sent
0 dropped
6109 failures to allocate llinfo
pfkey:
0 requests sent from userland
0 bytes sent from userland
0 messages with invalid length field
0 messages with invalid version field
0 messages with invalid message type field
0 messages too short
0 messages with memory allocation failure
0 messages with duplicate extension
0 messages with invalid extension type
0 messages with invalid sa type
0 messages with invalid address extension
0 requests sent to userland
0 bytes sent to userland
0 messages toward single socket
0 messages toward all sockets
0 messages toward registered sockets
0 messages with memory allocation failure
>Fix:
--- /usr/src/usr.bin/netstat/inet6.c Thu Oct 18 02:26:16 2001
+++ inet6.c Sat Oct 26 09:39:02 2002
@@ -1120,7 +1120,7 @@
#define p(f, m) if (rip6stat.f || sflag <= 1) \
printf(m, (unsigned long long)rip6stat.f, plural(rip6stat.f))
p(rip6s_ipackets, "\t%llu message%s received\n");
- p(rip6s_isum, "\t%llu checksum calcuration%s on inbound\n");
+ p(rip6s_isum, "\t%llu checksum calculation%s on inbound\n");
p(rip6s_badsum, "\t%llu message%s with bad checksum\n");
p(rip6s_nosock, "\t%llu message%s dropped due to no socket\n");
p(rip6s_nosockmcast,
>Release-Note:
>Audit-Trail:
>Unformatted: