mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-12 20:28:20 +00:00
netperf: enable netperf_bridge test on linux
Statically configured NIC bridge clients must be configured via <policy...> nodes in the config. Otherwise, the bridge can't answer ARP requests or route traffic.
This commit is contained in:
committed by
Norman Feske
parent
3056c718c8
commit
0d5d74fec6
@ -64,6 +64,8 @@ create_boot_directory
|
|||||||
# Generate config
|
# Generate config
|
||||||
#
|
#
|
||||||
|
|
||||||
|
set lx_ip_addr "10.0.2.55"
|
||||||
|
|
||||||
set config {
|
set config {
|
||||||
<config verbose="yes">
|
<config verbose="yes">
|
||||||
<parent-provides>
|
<parent-provides>
|
||||||
@ -98,7 +100,11 @@ append_if $use_nic_bridge config {
|
|||||||
<start name="nic_bridge">
|
<start name="nic_bridge">
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="4M"/>
|
||||||
<provides><service name="Nic"/></provides>
|
<provides><service name="Nic"/></provides>
|
||||||
<config/>
|
<config>}
|
||||||
|
append_if [expr $use_nic_bridge && [have_spec linux]] config "
|
||||||
|
<policy label=\"netserver_genode\" ip_addr=\"$lx_ip_addr\"/>"
|
||||||
|
append_if $use_nic_bridge config {
|
||||||
|
</config>
|
||||||
<route>
|
<route>
|
||||||
<service name="Nic"> }
|
<service name="Nic"> }
|
||||||
append_if $use_nic_bridge config "
|
append_if $use_nic_bridge config "
|
||||||
@ -156,7 +162,6 @@ append config {
|
|||||||
<arg value="-D"/>
|
<arg value="-D"/>
|
||||||
<arg value="-4"/>
|
<arg value="-4"/>
|
||||||
<arg value="-f"/>}
|
<arg value="-f"/>}
|
||||||
set lx_ip_addr "10.0.2.55"
|
|
||||||
append_if [have_spec linux] config "
|
append_if [have_spec linux] config "
|
||||||
<libc ip_addr=\"$lx_ip_addr\" netmask=\"255.255.255.0\" gateway=\"10.0.2.1\"/>"
|
<libc ip_addr=\"$lx_ip_addr\" netmask=\"255.255.255.0\" gateway=\"10.0.2.1\"/>"
|
||||||
append config {
|
append config {
|
||||||
|
Reference in New Issue
Block a user