This is current/amd64. The default output of netstat(1)
contains quite a few lines like the following for the AF_UNIX family:

  0x0 stream      0      0           0x0   0x0
  0x0 stream      0      0           0x0   0x0
  0x0 stream      0      0           0x0   0x0
  0x0 stream      0      0           0x0   0x0
  0x0 stream      0      0           0x0   0x0

What are these? Are they unnamed pipes opened in some running process?
As opposed to named pipes which have a filename in the last column?

  0x0 stream      0      0           0x0  0x0 0x0 0x0 /tmp/aucat/aucat0
                             


The -n apparently displays numerical values not just for addresses,
but also for service names (such as 123, not 'ntp').

Index: netstat.1
===================================================================
RCS file: /cvs/src/usr.bin/netstat/netstat.1,v
retrieving revision 1.72
diff -u -p -r1.72 netstat.1
--- netstat.1   23 Oct 2014 16:45:57 -0000      1.72
+++ netstat.1   22 Feb 2015 13:09:51 -0000
@@ -233,10 +233,9 @@ Show statistics recorded by the memory m
 .It Fl N Ar system
 Extract the name list from the specified system instead of the running kernel.
 .It Fl n
-Show network addresses as numbers (normally
+Show network addresses and service names as numbers (normally
 .Nm
-interprets addresses and attempts to display them
-symbolically).
+attempts to display them symbolically).
 This option may be used with any of the display formats.
 .It Fl P Ar pcbaddr
 Display the contents of the socket or protocol control block (PCB)



The -v option should "avoid truncation of long addresses", but e.g.

$ netstat -f inet -v
Active Internet connections
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp          0      0  lenovo.44110           ea-in-f189.1e100.https ESTABLISHED
tcp          0      0  lenovo.17984           ee-in-f189.1e100.https ESTABLISHED
tcp          0      0  lenovo.12855           prg02s11-in-f16..https ESTABLISHED
tcp          0      0  lenovo.2609            93.99.92.11.www        ESTABLISHED
tcp          0      0  lenovo.44964           www.ssh                ESTABLISHED
tcp          0      0  lenovo.16097           bbb.ssh                ESTABLISHED
Active Internet connections
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp          0      0  lenovo.11880           46.243.48.111.ntp     
udp          0      0  lenovo.5564            mail.ctech.tuxin.ntp  
udp          0      0  lenovo.43585           46.243.51.55.ntp      
udp          0      0  localhost.3393         localhost.3393        


        Jan

Reply via email to