Bug 244589 - netstat -i -d --libxo json mentions "dropped-packets" twice
Summary: netstat -i -d --libxo json mentions "dropped-packets" twice
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 07:56 UTC by Rudolph
Modified: 2020-05-27 14:48 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolph 2020-03-04 07:56:53 UTC
Example output of netstat -i -d --libxo json:

{"statistics": {"interface: [{"name":"em0","flags":"0x8843","mtu":1500,"network":"<Link#1>","address":"xx:xx:xx:xx:xx:xx","received-packets":13445,"received-errors":0,"dropped-packets":0,"sent-packets":7580,"send-errors":0,"collisions":0,"dropped-packets":0}, etc. etc.

"dropped-packets" is used twice. One is probably for "in" and the other for "out". Output without libxo:

Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll  Drop
em0    1500 <Link#1>      xx:xx:xx:xx:xx:xx    14803     0     0     8191     0     0     0
etc.
Comment 1 Phil Shafer freebsd_committer 2020-05-27 14:48:34 UTC
Yes, this should be "dropped-packets-input" and "dropped-packets-output" to make this clear and useful.

Thanks,
 Phil