From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from svn.comics.unina.it (unknown [143.225.229.147]) by huchra.bufferbloat.net (Postfix) with ESMTP id 2C5A7200956 for ; Wed, 18 May 2011 07:05:44 -0700 (PDT) Received: from www-data by svn.comics.unina.it with local (Exim 4.69) (envelope-from ) id 1QMhcb-0007FZ-Fe for bismark-commits@lists.bufferbloat.net; Wed, 18 May 2011 16:21:09 +0200 To: bismark-commits@lists.bufferbloat.net From: walter@svn.comics.unina.it Message-Id: Date: Wed, 18 May 2011 16:21:09 +0200 Subject: [Bismark-commits] rev 338 - trunk/device/OpenWrt_common/scripts X-BeenThere: bismark-commits@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Commit log for the bismark source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 14:05:45 -0000 Author: walter Date: 2011-05-18 16:21:09 +0200 (Wed, 18 May 2011) New Revision: 338 Modified: trunk/device/OpenWrt_common/scripts/bismark-measure-active Log: added default probe port to bismark-measure-active Modified: trunk/device/OpenWrt_common/scripts/bismark-measure-active =================================================================== --- trunk/device/OpenWrt_common/scripts/bismark-measure-active 2011-05-18 13:51:29 UTC (rev 337) +++ trunk/device/OpenWrt_common/scripts/bismark-measure-active 2011-05-18 14:21:09 UTC (rev 338) @@ -32,8 +32,12 @@ get_target () { # Select probe port - read port_counter < /tmp/bismark/var/port_counter - PROBE_PORT=$(echo $PROBE_PORTS | awk '{print $'$((port_counter + 1))'}') + if [ -e /tmp/bismark/var/port_counter ]; then + read port_counter < /tmp/bismark/var/port_counter + PROBE_PORT=$(echo $PROBE_PORTS | awk '{print $'$((port_counter + 1))'}') + else + PROBE_PORT=5353 + fi # Send message msg "$1 $2 $3 $4" | nc -u $NC_OPTS $SERVER $PROBE_PORT > $MEASURE_REPLY @@ -67,7 +71,6 @@ end ## Concurrent measurements ## -count=0 if [ $((count % TR_FQ)) -eq 0 ]; then # Traceroute if get_target Bismark TR $ZONE 0 ; then @@ -96,7 +99,7 @@ fi fi fi -echo "Done TR" + # Get Gateway IP if [ ! "$gwip" ]; then bismark-tr "8.8.8.8" > /dev/null @@ -119,12 +122,11 @@ # MServer RTT bismark-ping $dst | bismark-mstats RTT PING $src $dst >> $XML_FILE fi -echo "Done PING" + # DNS delay and failure if [ $((count % DNS_FQ)) -eq 0 ]; then bismark-dns >> $XML_FILE fi -echo "Done DNS" ## Serial measurements ## if [ ! -e /tmp/bismark/var/mlock ]; then