Skip to content

Commit

Permalink
fix(ifdata): Fix flag descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 14, 2024
1 parent 9ff86ec commit edde80c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
28 changes: 14 additions & 14 deletions cmd/ifdata/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ func (f formatter) description() string {
return `Prints "yes" or "no" if the interface exists or not`
case fmtAddress:
return "Prints the IP address of the interface"
case fmtNetmask:
return "Prints the netmask of the interface"
case fmtNetworkAddress:
return "Prints the network address of the interface"
case fmtNetmask:
return "Prints the netmask of the interface"
case fmtBroadcastAddress:
return "Prints the broadcast address of the interface"
case fmtMTU:
return "Prints the MTU of the interface"
case fmtFlags:
return "Prints the hardware address of the interface. Exit with a failure exit code if there is not hardware address for the given network interface"
case fmtHardwareAddress:
return "Prints the flags of the interface"
case fmtHardwareAddress:
return "Prints the hardware address of the interface. Exit with a failure exit code if there is not hardware address for the given network interface"
case fmtInputStatistics:
return "Prints all input statistics of the interface"
case fmtInputPackets:
Expand All @@ -88,25 +88,25 @@ func (f formatter) description() string {
return "Prints the number of compressed input packets"
case fmtInputMulticast:
return "Prints the number of input multicast packets"
case fmtInputBytesSecond:
return "Prints all output statistics of the interface"
case fmtOutputStatistics:
return "Prints the number of output packets"
return "Prints all output statistics of the interface"
case fmtOutputPackets:
return "Prints the number of output bytes"
return "Prints the number of output packets"
case fmtOutputBytes:
return "Prints the number of output errors"
return "Prints the number of output bytes"
case fmtOutputErrors:
return "Prints the number of dropped output packets"
return "Prints the number of output errors"
case fmtOutputDropped:
return "Prints the number of output fifo overruns"
return "Prints the number of dropped output packets"
case fmtOutputFIFO:
return "Prints the number of output collisions"
return "Prints the number of output fifo overruns"
case fmtOutputCollisions:
return "Prints the number of output carrier losses"
return "Prints the number of output collisions"
case fmtOutputCarrierLosses:
return "Prints the number of output multicast packets"
return "Prints the number of output carrier losses"
case fmtOutputMulticast:
return "Prints the number of output multicast packets"
case fmtInputBytesSecond:
return "Prints the number of bytes of incoming traffic measured in one second"
case fmtOutputBytesSecond:
return "Prints the number of bytes of outgoing traffic measured in one second"
Expand Down
24 changes: 12 additions & 12 deletions docs/ifdata.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ifdata [flags] interface
-pn Prints the netmask of the interface
-pb Prints the broadcast address of the interface
-pm Prints the MTU of the interface
-pf Prints the hardware address of the interface. Exit with a failure exit code if there is not hardware address for the given network interface
-ph Prints the flags of the interface
-pf Prints the flags of the interface
-ph Prints the hardware address of the interface. Exit with a failure exit code if there is not hardware address for the given network interface
-si Prints all input statistics of the interface
-sip Prints the number of input packets
-sib Prints the number of input bytes
Expand All @@ -28,16 +28,16 @@ ifdata [flags] interface
-sif Prints the number of input fifo overruns
-sic Prints the number of compressed input packets
-sim Prints the number of input multicast packets
-so Prints the number of output packets
-sop Prints the number of output bytes
-sob Prints the number of output errors
-soe Prints the number of dropped output packets
-sod Prints the number of output fifo overruns
-sof Prints the number of output collisions
-sox Prints the number of output carrier losses
-soc Prints the number of output multicast packets
-som Prints the number of bytes of incoming traffic measured in one second
-bips Prints all output statistics of the interface
-so Prints all output statistics of the interface
-sop Prints the number of output packets
-sob Prints the number of output bytes
-soe Prints the number of output errors
-sod Prints the number of dropped output packets
-sof Prints the number of output fifo overruns
-sox Prints the number of output collisions
-soc Prints the number of output carrier losses
-som Prints the number of output multicast packets
-bips Prints the number of bytes of incoming traffic measured in one second
-bops Prints the number of bytes of outgoing traffic measured in one second
-v version for ifdata
```
Expand Down

0 comments on commit edde80c

Please sign in to comment.