#!/bin/sh -xe

client="$1"
iface="$2"

while true
do
	ifconfig ${iface} down up
	ping -o ${client}
	netperf -H ${client}
	netperf -H ${client} -- -m 64,64 -M 64,64
done
