mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
ping_nic_router.run: add nic_bridge behind router
This tests the case that behind a NIC router domain there are not only directly connected clients of the subnet but also Layer 2 indirections like a switch or a bridge which might be interesting for example for testing the NIC routers DHCP server implementation. Fixes #2837
This commit is contained in:
parent
0996954abb
commit
6de79ad703
@ -10,6 +10,7 @@ set build_components {
|
|||||||
drivers/timer
|
drivers/timer
|
||||||
drivers/nic
|
drivers/nic
|
||||||
server/nic_router
|
server/nic_router
|
||||||
|
server/nic_bridge
|
||||||
app/ping
|
app/ping
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,16 +182,28 @@ append config {
|
|||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
|
<start name="ping_2_nic_bridge" caps="200">
|
||||||
|
<binary name="nic_bridge"/>
|
||||||
|
<resource name="RAM" quantum="10M"/>
|
||||||
|
<provides><service name="Nic"/></provides>
|
||||||
|
<config mac="12:12:12:12:12:00">
|
||||||
|
<policy label_prefix="ping_21"/>
|
||||||
|
<policy label_prefix="ping_23"/>
|
||||||
|
</config>
|
||||||
|
<route>
|
||||||
|
<service name="Nic"> <child name="ping_2_nic_router"/> </service>
|
||||||
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
|
</route>
|
||||||
|
</start>
|
||||||
|
|
||||||
<start name="ping_21">
|
<start name="ping_21">
|
||||||
<binary name="ping"/>
|
<binary name="ping"/>
|
||||||
<resource name="RAM" quantum="8M"/>
|
<resource name="RAM" quantum="8M"/>
|
||||||
<config interface="10.0.5.2/24"
|
<config dst_ip="} [good_dst_ip] {"
|
||||||
gateway="10.0.5.1"
|
|
||||||
dst_ip="} [good_dst_ip] {"
|
|
||||||
period_sec="1"
|
period_sec="1"
|
||||||
verbose="no"/>
|
verbose="no"/>
|
||||||
<route>
|
<route>
|
||||||
<service name="Nic"> <child name="ping_2_nic_router"/> </service>
|
<service name="Nic"> <child name="ping_2_nic_bridge"/> </service>
|
||||||
<any-service> <parent/> <any-child/> </any-service>
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
@ -220,7 +233,7 @@ append_if $on_hardware config {
|
|||||||
dst_ip="} [good_dst_ip] {"
|
dst_ip="} [good_dst_ip] {"
|
||||||
dst_port="} [bad_dst_port] {"/>
|
dst_port="} [bad_dst_port] {"/>
|
||||||
<route>
|
<route>
|
||||||
<service name="Nic"> <child name="ping_2_nic_router"/> </service>
|
<service name="Nic"> <child name="ping_2_nic_bridge"/> </service>
|
||||||
<any-service> <parent/> <any-child/> </any-service>
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
</route>
|
</route>
|
||||||
</start>}
|
</start>}
|
||||||
@ -242,6 +255,7 @@ append boot_modules {
|
|||||||
ping
|
ping
|
||||||
ld.lib.so
|
ld.lib.so
|
||||||
nic_router
|
nic_router
|
||||||
|
nic_bridge
|
||||||
}
|
}
|
||||||
|
|
||||||
# platform-specific modules
|
# platform-specific modules
|
||||||
|
Loading…
Reference in New Issue
Block a user