Print this page
9352 netstat(1M) should be able to print IPv4 networks in CIDR form

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/netstat.1m.man.txt
          +++ new/usr/src/man/man1m/netstat.1m.man.txt
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15         netstat -p [-n] [-f address_family]
  16   16  
  17   17  
  18   18         netstat -s [-f address_family] [-P protocol]
  19   19              [-T u | d ] [interval [count]]
  20   20  
  21   21  
  22   22         netstat -m [-T u | d ] [-v] [interval [count]]
  23   23  
  24   24  
  25      -       netstat -i [-I interface] [-an] [-f address_family]
       25 +       netstat -i [-I interface] [-acn] [-f address_family]
  26   26              [-T u | d ] [interval [count]]
  27   27  
  28   28  
  29      -       netstat -r [-anvR] [-f address_family | filter]
       29 +       netstat -r [-acnvR] [-f address_family | filter]
  30   30  
  31   31  
  32      -       netstat -M [-ns] [-f address_family]
       32 +       netstat -M [-cns] [-f address_family]
  33   33  
  34   34  
  35   35         netstat -D [-I interface] [-f address_family]
  36   36  
  37   37  
  38   38  DESCRIPTION
  39   39         The netstat command displays the contents of certain network-related
  40   40         data structures in various formats, depending on the options you
  41   41         select.
  42   42  
↓ open down ↓ 29 lines elided ↑ open up ↑
  72   72  OPTIONS
  73   73         -a
  74   74  
  75   75             Show the state of all sockets, all routing table entries, or all
  76   76             interfaces, both physical and logical. Normally, listener sockets
  77   77             used by server processes are not shown. Under most conditions, only
  78   78             interface, host, network, and default routes are shown and only the
  79   79             status of physical interfaces is shown.
  80   80  
  81   81  
       82 +       -c
       83 +
       84 +           Print IPv4 networks using CIDR (x.y.z.a/NN) notation with the -i,
       85 +           -r, and -M options. IPv6 networks default to this, but due to
       86 +           backward compatibility, IPv4 ones do not without this flag.  A
       87 +           noncontiguous IPv4 netmask will print "/NM" if this flag is
       88 +           enabled.
       89 +
       90 +
  82   91         -f address_family
  83   92  
  84   93             Limit all displays to those of the specified address_family. The
  85   94             value of address_family can be one of the following:
  86   95  
  87   96             inet
  88   97                      For the AF_INET address family showing IPv4 information.
  89   98  
  90   99  
  91  100             inet6
↓ open down ↓ 577 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX