12670 Unaligned output of snoop's usage() function

Review Request #2544 — Created May 1, 2020 and submitted

nanxiao
illumos-gate
12670
general

Modify unaligned output of snoop's usage() function

Use space instead of tab, and the output is like this:

Usage:  snoop
    [ -a ]                       # Listen to packets on audio
    [ -d link ]                  # Listen on named link
    [ -s snaplen ]               # Truncate packets
    [ -I IP interface ]          # Listen on named IP interface
    [ -c count ]                 # Quit after count packets
    [ -P ]                       # Turn OFF promiscuous mode
    [ -D ]                       # Report dropped packets
    [ -S ]                       # Report packet size
    [ -i file ]                  # Read previously captured packets
    [ -o file ]                  # Capture packets in file
    [ -n file ]                  # Load addr-to-name table from file
    [ -N ]                       # Create addr-to-name table
    [ -t  r|a|d ]                # Time: Relative, Absolute or Delta
    [ -v ]                       # Verbose packet display
    [ -V ]                       # Show all summary lines
    [ -p first[,last] ]          # Select packet(s) to display
    [ -x offset[,length] ]       # Hex dump from offset for length
    [ -C ]                       # Print packet filter code
    [ -q ]                       # Suppress printing packet count
    [ -r ]                       # Do not resolve address to name

    [ filter expression ]

Example:
    snoop -o saved  host fred

    snoop -i saved -tr -v -p19
  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
tsoome
  1. Ship It!
  2. 
      
marcel
  1. Ship It!
  2. I think it is worth to replace tabs by \t in the usage() function.

    1. ... or by spaces.

  3. 
      
andy_js
  1. Ship It!
  2. 
      
nanxiao
marcel
  1. Ship It!
  2. 
      
nanxiao
Review request changed

Status: Closed (submitted)

Loading...