[Bug 256926] netstat -s -p arp --libxo json|xml|html displays "received packers" instead of "received packets"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 256926] netstat -s -p arp --libxo json|xml|html displays "received packers" instead of "received packets""
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 256926] netstat -s -p arp --libxo json|xml|html displays "received packers" instead of "received packets""
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Jul 2021 18:26:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256926 Bug ID: 256926 Summary: netstat -s -p arp --libxo json|xml|html displays "received packers" instead of "received packets" Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ghuckriede@blackberry.com Typo in arp statistics for libxo. Here is a fix. diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 1143c09734e..45c5f05e60b 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1115,7 +1115,7 @@ arp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) "{N:/ARP request%s received}\n"); p2(rxreplies, "{:received-replies/%ju} " "{N:/ARP repl%s received}\n"); - p(received, "{:received-packers/%ju} " + p(received, "{:received-packets/%ju} " "{N:/ARP packet%s received}\n"); p(dropped, "{:dropped-no-entry/%ju} " "{N:/total packet%s dropped due to no ARP entry}\n"); Currently displays... # netstat -s -p arp --libxo json {"statistics": {"arp": {"sent-requests":9,"sent-failures":5,"sent-replies":150,"received-requests":409861,"received-replies":13,"received-packers":409874,"dropped-no-entry":0,"entries-timeout":129,"dropped-duplicate-address":0}}} # netstat -s -p arp --libxo html <div class="line"><div class="title">arp</div><div class="text">:</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="sent-requests">9</div><div class="text"> </div><div class="note">ARP requests sent</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="sent-failures">5</div><div class="text"> </div><div class="note">ARP requests failed to sent</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="sent-replies">150</div><div class="text"> </div><div class="note">ARP replies sent</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="received-requests">409886</div><div class="text"> </div><div class="note">ARP requests received</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="received-replies">13</div><div class="text"> </div><div class="note">ARP replies received</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="received-packers">409899</div><div class="text"> </div><div class="note">ARP packets received</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="dropped-no-entry">0</div><div class="text"> </div><div class="note">total packets dropped due to no ARP entry</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="entries-timeout">129</div><div class="text"> </div><div class="note">ARP entrys timed out</div></div><div class="line"><div class="text"> </div><div class="data" data-tag="dropped-duplicate-address">0</div><div class="text"> </div><div class="note">Duplicate IPs seen</div></div> # netstat -s -p arp --libxo xml <statistics><arp><sent-requests>9</sent-requests><sent-failures>5</sent-failures><sent-replies>150</sent-replies><received-requests>409915</received-requests><received-replies>13</received-replies><received-packers>409928</received-packers><dropped-no-entry>0</dropped-no-entry><entries-timeout>129</entries-timeout><dropped-duplicate-address>0</dropped-duplicate-address></arp> # -- You are receiving this mail because: You are the assignee for the bug.