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

*** 20,37 **** netstat -m [-T u | d ] [-v] [interval [count]] ! netstat -i [-I interface] [-an] [-f address_family] [-T u | d ] [interval [count]] ! netstat -r [-anvR] [-f address_family | filter] ! netstat -M [-ns] [-f address_family] netstat -D [-I interface] [-f address_family] --- 20,37 ---- netstat -m [-T u | d ] [-v] [interval [count]] ! netstat -i [-I interface] [-acn] [-f address_family] [-T u | d ] [interval [count]] ! netstat -r [-acnvR] [-f address_family | filter] ! netstat -M [-cns] [-f address_family] netstat -D [-I interface] [-f address_family]
*** 77,86 **** --- 77,95 ---- used by server processes are not shown. Under most conditions, only interface, host, network, and default routes are shown and only the status of physical interfaces is shown. + -c + + Print IPv4 networks using CIDR (x.y.z.a/NN) notation with the -i, + -r, and -M options. IPv6 networks default to this, but due to + backward compatibility, IPv4 ones do not without this flag. A + noncontiguous IPv4 netmask will print "/NM" if this flag is + enabled. + + -f address_family Limit all displays to those of the specified address_family. The value of address_family can be one of the following: