From 4febaff66e997603f6499a80371bf17a63c98b8b Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 6 Sep 2013 14:49:50 +0200 Subject: [PATCH] netperf: netperf w/ static ip address on linux The netperf test configures the target Genode system for with 10.0.2.55/24. Also, nic_drv on base-linux uses the virtual ethernet device 'tap0', which must be configured for the test user and network address 10.0.2.1/24 on the test host like follows. tunctl -t tap0 -u ip address add 10.0.2.1/24 dev tap ip link set tap0 up --- ports/run/netperf.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ports/run/netperf.inc b/ports/run/netperf.inc index 9a61ed67e4..f4f561292c 100644 --- a/ports/run/netperf.inc +++ b/ports/run/netperf.inc @@ -155,7 +155,11 @@ append config { - + } +set lx_ip_addr "10.0.2.55" +append_if [have_spec linux] config " + " +append config { } append_if $use_nic_bridge config { @@ -212,6 +216,8 @@ set force_ports "" if [is_qemu_available] { set ip_addr "localhost" set force_ports "-P 49153,49153" +} elseif [have_spec linux] { + set ip_addr $lx_ip_addr } else { set match_string "got IP address (\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)" regexp $match_string $output all ip_addr