2
0
Fork 0
genodepkgs/tests/solo5/net.dhall

69 lines
2.4 KiB
Plaintext
Raw Normal View History

2020-01-17 01:24:34 +01:00
-- SPDX-License-Identifier: CC0-1.0
2019-10-08 09:48:45 +02:00
let Genode = env:DHALL_GENODE
in λ(_ : {})
2020-01-14 12:16:02 +01:00
→ Genode.Init::{
, children =
toMap
{ nic =
Genode.Init.Start::{
, binary = "nic_loopback"
, provides = [ "Nic" ]
}
, bridge =
Genode.Init.Start::{
, binary = "nic_bridge"
, resources = { caps = 200, ram = Genode.units.MiB 6 }
, provides = [ "Nic" ]
, routes = [ Genode.ServiceRoute.child "Nic" "nic" ]
, config =
Some
( Genode.Prelude.XML.text
''
<config mac="02:02:02:02:03:00" verbose="no">
<policy label_prefix="solo5" ip_addr="10.0.0.2"/>
<default-policy/>
</config>
''
)
}
, solo5 =
Genode.Init.Start::{
, binary = "test"
, resources = { caps = 256, ram = Genode.units.MiB 3 }
, routes =
[ Genode.ServiceRoute.parent "Timer"
, Genode.ServiceRoute.child "Nic" "bridge"
]
, config =
Some
( Genode.Prelude.XML.text
''
<config><cmdline>limit</cmdline></config>
''
)
}
, ping =
Genode.Init.Start::{
, binary = "ping"
, resources = { caps = 128, ram = Genode.units.MiB 6 }
, routes =
[ Genode.ServiceRoute.parent "Timer"
, Genode.ServiceRoute.child "Nic" "bridge"
]
, config =
Some
( Genode.Prelude.XML.text
''
<config interface="10.0.0.72/24"
dst_ip="10.0.0.2"
period_sec="1"
verbose="no"
count="8"/>
''
)
}
}
2019-10-08 09:48:45 +02:00
}