- Mitglied seit
- 2 Dez 2007
- Beiträge
- 8,014
- Punkte für Reaktionen
- 28
- Punkte
- 48
Im Anhang ein Patch für sockstat, ein kleines Tool (10 Kb) das ein Output analog "lsof -nPi" (127 Kb) produziert:
Code:
/var/mod/root # sockstat
SocketStat v1.0 - A Socket Information Program
Pro User Process Local Address Remote Address State
UDP root ctlmgr[523] 0.0.0.0:2048 0.0.0.0:0 CLOSED
TCP root ctlmgr[523] 0.0.0.0:80 0.0.0.0:0 LISTEN
TCP root ctlmgr[523] 0.0.0.0:8080 0.0.0.0:0 LISTEN
UDP root ctlmgr[568] 0.0.0.0:2048 0.0.0.0:0 CLOSED
TCP root ctlmgr[568] 0.0.0.0:80 0.0.0.0:0 LISTEN
TCP root ctlmgr[568] 0.0.0.0:8080 0.0.0.0:0 LISTEN
UDP root ctlmgr[570] 0.0.0.0:2048 0.0.0.0:0 CLOSED
TCP root ctlmgr[570] 0.0.0.0:80 0.0.0.0:0 LISTEN
TCP root ctlmgr[570] 0.0.0.0:8080 0.0.0.0:0 LISTEN
UDP root ctlmgr[572] 0.0.0.0:2048 0.0.0.0:0 CLOSED
TCP root ctlmgr[572] 0.0.0.0:80 0.0.0.0:0 LISTEN
TCP root ctlmgr[572] 0.0.0.0:8080 0.0.0.0:0 LISTEN
UDP root dnsmasq[675] 0.0.0.0:53 0.0.0.0:0 CLOSED
TCP root dnsmasq[675] 0.0.0.0:53 0.0.0.0:0 LISTEN
UDP root multid[690] 0.0.0.0:2049 0.0.0.0:0 CLOSED
RAW root multid[690] 0.0.0.0:2 0.0.0.0:0 CLOSED
RAW root multid[690] 0.0.0.0:2 0.0.0.0:0 CLOSED
RAW root multid[690] 0.0.0.0:2 0.0.0.0:0 CLOSED
UDP root multid[690] 0.0.0.0:2050 0.0.0.0:0 CLOSED
RAW root multid[690] 0.0.0.0:2 0.0.0.0:0 CLOSED
TCP root busybox[831] 0.0.0.0:23 0.0.0.0:0 LISTEN
TCP root busybox[831] 192.168.###.###:### 192.168.###.###:58448 ESTBLSH
TCP root busybox[958] 0.0.0.0:81 0.0.0.0:0 LISTEN
TCP root busybox[958] 0.0.0.0:##### 0.0.0.0:0 LISTEN
TCP root vtund[1785] 169.254.2.1:2049 ###.###.###.1#5:##### ESTBLSH
Total: 25 (TCP: 14 UDP: 7 RAW: 4)