@@ -615,6 +615,43 @@ chk_fail_nr()
fi
}
+chk_infi_nr()
+{
+ local mp_infi_nr_tx=$1
+ local mp_infi_nr_rx=$2
+ local count
+ local dump_stats
+
+ printf "%-39s %s" " " "itx"
+ count=`ip netns exec $ns1 nstat -as | grep InfiniteMapTx | awk '{print $2}'`
+ [ -z "$count" ] && count=0
+ if [ "$count" != "$mp_infi_nr_tx" ]; then
+ echo "[fail] got $count infinite map[s] TX expected $mp_infi_nr_tx"
+ ret=1
+ dump_stats=1
+ else
+ echo -n "[ ok ]"
+ fi
+
+ echo -n " - irx "
+ count=`ip netns exec $ns2 nstat -as | grep InfiniteMapRx | awk '{print $2}'`
+ [ -z "$count" ] && count=0
+ if [ "$count" != "$mp_infi_nr_rx" ]; then
+ echo "[fail] got $count infinite map[s] RX expected $mp_infi_nr_rx"
+ ret=1
+ dump_stats=1
+ else
+ echo "[ ok ]"
+ fi
+
+ if [ "${dump_stats}" = 1 ]; then
+ echo Server ns stats
+ ip netns exec $ns1 nstat -as | grep MPTcp
+ echo Client ns stats
+ ip netns exec $ns2 nstat -as | grep MPTcp
+ fi
+}
+
chk_join_nr()
{
local msg="$1"
@@ -665,6 +702,7 @@ chk_join_nr()
if [ $checksum -eq 1 ]; then
chk_csum_nr
chk_fail_nr 0 0
+ chk_infi_nr 0 0
fi
}