]> git.saurik.com Git - apple/configd.git/blobdiff - get-network-info
configd-1109.40.9.tar.gz
[apple/configd.git] / get-network-info
index 4a18b49270525dc63175d8456fc1858d06c76d7b..156b0c2dfc1a39f2dd25883e29d4a6035be1aa9a 100755 (executable)
@@ -162,9 +162,9 @@ run_netstat () {
                for if in ${IF_LIST}
                do
                        echo "#"                                        >> netstat.txt
-                       echo "# netstat -s -I ${if}"                    >> netstat.txt
+                       echo "# netstat -n -s -I ${if}"                 >> netstat.txt
                        echo "#"                                        >> netstat.txt
-                       /usr/sbin/netstat -s -I ${if}                   >> netstat.txt          2>&1
+                       /usr/sbin/netstat -n -s -I ${if}                >> netstat.txt          2>&1
 
                        IF_INFO=`/sbin/ifconfig -v ${if}`
                        `echo $IF_INFO | grep -q TXSTART`
@@ -281,6 +281,17 @@ run_ipconfig () {
                                echo "not available"                    >> ipconfig-info.txt
                        fi
 
+                       echo""                                          >> ipconfig-info.txt
+
+                       echo "IPv6 information:"                        >> ipconfig-info.txt
+
+                       IPCONFIG_INFO=`/usr/sbin/ipconfig getra ${if}`
+                       if [ "${IPCONFIG_INFO}" != "" ]; then
+                               echo "${IPCONFIG_INFO}"                 >> ipconfig-info.txt
+                       else
+                               echo "not available"                    >> ipconfig-info.txt
+                       fi
+
                        echo""                                          >> ipconfig-info.txt
                        ;;
                esac