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
          +++ new/usr/src/man/man1m/netstat.1m
   1    1  '\" te
        2 +.\" Copyright 2018, Joyent, Inc.
   2    3  .\" Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
   3    4  .\" Copyright 1989 AT&T
   4    5  .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
   5    6  .TH NETSTAT 1M "Sep 02, 2015"
   6    7  .SH NAME
   7    8  netstat \- show network status
   8    9  .SH SYNOPSIS
   9   10  .LP
  10   11  .nf
  11   12  \fBnetstat\fR [\fB-anvR\fR] [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
↓ open down ↓ 15 lines elided ↑ open up ↑
  27   28       [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
  28   29  .fi
  29   30  
  30   31  .LP
  31   32  .nf
  32   33  \fBnetstat\fR \fB-m\fR [\fB-T\fR u | d ] [\fB-v\fR] [\fIinterval\fR [\fIcount\fR]]
  33   34  .fi
  34   35  
  35   36  .LP
  36   37  .nf
  37      -\fBnetstat\fR \fB-i\fR [\fB-I\fR \fIinterface\fR] [\fB-an\fR] [\fB-f\fR \fIaddress_family\fR]
       38 +\fBnetstat\fR \fB-i\fR [\fB-I\fR \fIinterface\fR] [\fB-acn\fR] [\fB-f\fR \fIaddress_family\fR]
  38   39       [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
  39   40  .fi
  40   41  
  41   42  .LP
  42   43  .nf
  43      -\fBnetstat\fR \fB-r\fR [\fB-anvR\fR] [\fB-f\fR \fIaddress_family\fR | \fIfilter\fR]
       44 +\fBnetstat\fR \fB-r\fR [\fB-acnvR\fR] [\fB-f\fR \fIaddress_family\fR | \fIfilter\fR]
  44   45  .fi
  45   46  
  46   47  .LP
  47   48  .nf
  48      -\fBnetstat\fR \fB-M\fR [\fB-ns\fR] [\fB-f\fR \fIaddress_family\fR]
       49 +\fBnetstat\fR \fB-M\fR [\fB-cns\fR] [\fB-f\fR \fIaddress_family\fR]
  49   50  .fi
  50   51  
  51   52  .LP
  52   53  .nf
  53   54  \fBnetstat\fR \fB-D\fR [\fB-I\fR \fIinterface\fR] [\fB-f\fR \fIaddress_family\fR]
  54   55  .fi
  55   56  
  56   57  .SH DESCRIPTION
  57   58  .LP
  58   59  The \fBnetstat\fR command displays the contents of certain network-related data
↓ open down ↓ 58 lines elided ↑ open up ↑
 117  118  \fB\fB-a\fR\fR
 118  119  .ad
 119  120  .sp .6
 120  121  .RS 4n
 121  122  Show the state of all sockets, all routing table entries, or all interfaces,
 122  123  both physical and logical. Normally, listener sockets used by server processes
 123  124  are not shown. Under most conditions, only interface, host, network, and
 124  125  default routes are shown and only the status of physical interfaces is shown.
 125  126  .RE
 126  127  
      128 +.sp
      129 +.ne 2
      130 +.na
      131 +\fB\fB-c\fR\fR
      132 +.ad
      133 +.sp .6
      134 +.RS 4n
      135 +Print IPv4 networks using CIDR (x.y.z.a/NN) notation with the \fB-i\fR,
      136 +\fB-r\fR, and \fB-M\fR options. IPv6 networks default to this, but due to
      137 +backward compatibility, IPv4 ones do not without this flag.  A noncontiguous
      138 +IPv4 netmask will print "/NM" if this flag is enabled.
      139 +.RE
      140 +
 127  141  .sp
 128  142  .ne 2
 129  143  .na
 130  144  \fB\fB-f\fR \fIaddress_family\fR\fR
 131  145  .ad
 132  146  .sp .6
 133  147  .RS 4n
 134  148  Limit all displays to those of the specified \fIaddress_family\fR. The value of
 135  149  \fIaddress_family\fR can be one of the following:
 136  150  .sp
↓ open down ↓ 934 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX