Menu

#43 netstat -s output

NEXTGEN
open
nobody
netstat (2)
5
2021-03-29
2021-03-29
Lam Thai
No

Just some cosmetic issues in the icmp6 portion of the netstat -s output:

./netstat --version
net-tools 2.10
Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang, Brian Micek and others
+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE -I18N
AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK -ECONET +ROSE -BLUETOOTH
HW:  +ETHER +ARC +SLIP +PPP +TUNNEL -TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64
./netstat -s -A inet6
Ip6:
    189 total packets received
    2 incoming packets discarded
    187 incoming packets delivered
    0 forwarded
    144 requests sent out
    93 incoming multicast packets
    7 outgoing multicast packets
    Ip6InOctets: 158689
    Ip6OutOctets: 41497
    Ip6InMcastOctets: 6920
    Ip6OutMcastOctets: 488
    Ip6InNoECTPkts: 190
Icmp6:
    96 ICMP messages received
    0 input ICMP message failed
    11 ICMP messages sent
    ICMP input histogram:
        router advertisement: 8
        neighbour solicits: 2
        neighbour advertisement: 86
        ICMP output histogram:
        router solicits: 1
        neighbor solicits: 4
        neighbor advertisements: 2
        Icmp6OutMLDv2Reports: 4
        Icmp6InType134: 8
        Icmp6InType135: 2
        Icmp6InType136: 86
        Icmp6OutType133: 1
        Icmp6OutType135: 4
        Icmp6OutType136: 2
        Icmp6OutType143: 4
Udp6:
    0 packets received
    0 packets to unknown port received
    0 packet receive errors
    0 packets sent
UdpLite6:
Tcp:
    179 active connection openings
    1 passive connection openings
    0 failed connection attempts
    1 connection resets received
    1 connections established
    2461 segments received
    3077 segments sent out
    0 segments retransmitted
    0 bad segments received
    1 resets sent
  • ICMP output histogram is nested inside ICMP input histogram.
  • Similar issue with all the Icmp6Out* and Icmp6In* lines.
  • neighbour is used in the input histogram but the output histogram uses neighbor.
  • Similarly, the input histogram uses advertisement but output histogram uses advertisements, they should be consistent.

Discussion


Log in to post a comment.