From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Ebert To: sig-arm@lists.ipfire.org Subject: net-tools Date: Fri, 22 Feb 2013 09:59:46 +0100 Message-ID: <51273382.7010301@gmx.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8855439395403670180==" List-Id: --===============8855439395403670180== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The netstat command under the arm-Platform is somehow buggy, because it doesn't implement a tcp6 output and therefore i didn't see all used ports. Here are the output of the original command from the original package: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:42592 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 3411/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 3432/mysqld tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN 2946/openvpn tcp 0 0 192.168.11.5:139 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3085/portmap tcp 0 0 0.0.0.0:43602 0.0.0.0:* LISTEN 3121/rpc.statd tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 2387/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3257/sshd tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3140/cupsd tcp 0 0 0.0.0.0:45756 0.0.0.0:* LISTEN 3108/rpc.mountd tcp 0 0 192.168.11.5:445 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 192.168.11.5:705 192.168.11.3:2049 ESTABLISHED - tcp 0 148 192.168.11.5:22 192.168.11.13:57738 ESTABLISHED 18509/0 That is the output of the version i've self compiled: tcp 0 0 0.0.0.0:42592 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 3411/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 3432/mysqld tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN 2946/openvpn tcp 0 0 192.168.11.5:139 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 3411/master tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3085/portmap tcp 0 0 0.0.0.0:43602 0.0.0.0:* LISTEN 3121/rpc.statd tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 2387/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3257/sshd tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3140/cupsd tcp 0 0 0.0.0.0:45756 0.0.0.0:* LISTEN 3108/rpc.mountd tcp 0 0 192.168.11.5:445 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 3462/smbd tcp 0 0 192.168.11.5:705 192.168.11.3:2049 ESTABLISHED - tcp 0 0 192.168.11.5:22 192.168.11.13:57738 ESTABLISHED 18509/sshd: root(a)pt tcp6 0 0 :::993 :::* LISTEN 3411/master tcp6 0 0 :::995 :::* LISTEN 3411/master tcp6 0 0 :::1001 :::* LISTEN 7816/httpd tcp6 0 0 :::110 :::* LISTEN 3411/master tcp6 0 0 :::143 :::* LISTEN 3411/master tcp6 0 0 :::81 :::* LISTEN 7816/httpd tcp6 0 0 :::22 :::* LISTEN 3257/sshd tcp6 0 0 :::631 :::* LISTEN 3140/cupsd tcp6 0 0 :::444 :::* LISTEN 7816/httpd The Problem occurs under IPFire 2.11 and 2.13. Here is the output of a test installation IPFire 2.13 i586: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 4108/httpd tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 3623/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4088/sshd tcp 0 0 0.0.0.0:444 0.0.0.0:* LISTEN 4108/httpd tcp 0 300 192.168.11.41:22 192.168.11.13:57750 ESTABLISHED 10723/0 You see that the process "httpd" doesn't show in the original netstat command of a default arm installation (kirkwood or dove). The sourcecode i've taken to test compile is taken from the gentoo git repository git://git.overlays.gentoo.org/proj/net-tools.git No more additional patches are made, i've taken the above code. Can anybody check this on his arm-Platform --===============8855439395403670180==--