TCP-IP





-, . netstat , inet (AF_INET) UNIX (AF_LOCAL AF_UNIX). , -f.

, INADDR_ANY, , -. , TCP/UDP-, netstat :

bsd: $ netstat -f inet

Active Internet connections

Proto Recv-Q Send-Q Local Address Foreign Address (state)

tcp 0 0 localhost.domain *.* LISTEN

tcp 0 0 bsd.domain *.* LISTEN

udp 0 0 localhost.domain *.*

udp 0 0 bsd.domain *.*

bsd: $

(named), bsd. , :

bsd: $ netstat -af inet

Active Internet connections

Proto Recv-Q Send-Q Local Address Foreign Address (state)

tcp 0 0 *.6000 *.* LISTEN

tcp 0 0 *.smtp *.* LISTEN

tcp 0 0 *.printer *.* LISTEN

tcp 0 0 *.rlnum *.* LISTEN

tcp 0 0 *.tcpmux *.* LISTEN

tcp 0 0 *.chargen *.* LISTEN

tcp 0 0 *.discard *.* LISTEN

tcp 0 0 *.echo *.* LISTEN

tcp 0 0 *.time *.* LISTEN

tcp 0 0 *.daytime *.* LISTEN

tcp 0 0 *.finger *.* LISTEN

tcp 0 0 *.login *.* LISTEN

tcp 0 0 *.cmd *.* LISTEN

tcp 0 0 *.telnet *.* LISTEN

tcp 0 0 *.ftp *.* LISTEN

tcp 0 0 *.1022 *.* LISTEN