proc ipstats - harperreed/audreyhacking GitHub Wiki
/proc/ipstats is a special file in /proc which allows the current network information to be viewed. Cat this file to see the current IP address, netmask, routing information, and interface statistics.
==Example==
Ttcpip Oct 12 2000 21:46:27 verbosity level 0 ip checksum errors: 0 udp checksum errors: 0 tcp checksum errors: 0 packets sent: 357 packets received: 778 en0 : addr 10.127.1.121 netmask 255.255.255.0 up lo0 : addr 127.0.0.1 netmask 255.0.0.0 up DST: 10.127.1.0 NETMASK: 255.255.255.0 GATEWAY: en0 DST: 127.0.0.0 NETMASK: 255.0.0.0 GATEWAY: lo0 DST: 0.0.0.0 NETMASK: 0.0.0.0 GATEWAY: 10.127.1.1 TCP 10.127.1.121.23 > 10.127.1.116.4049 ESTABLISHED snd 7 rcv 0 TCP 0.0.0.0.80 LISTEN TCP 0.0.0.0.23 LISTEN TCP 0.0.0.0.21 LISTEN UDP 0.0.0.0.68 > 10.127.1.10.67