genode/repos/os/recipes/pkg/nic_router-nat/runtime

31 lines
809 B
Plaintext
Raw Normal View History

<runtime ram="10M" caps="300" binary="nic_router">
<requires> <nic/> </requires>
<provides> <nic/> </provides>
<config verbose_domain_state="yes">
<default-policy domain="default" />
nic_router: replace term "uplink" with "NIC client" BREAKS CONFIG COMPATIBILITY: This commit changes the configuration interface of the NIC router in a way that may break systems that use the component without proper adjustment! HOW TO ADJUST: At each occurrence of the '<uplink ...>' tag in a NIC router configuration replace the tag name 'uplink' with 'nic-client'. The rest of the tag stays the same. The term "uplink" for network interfaces in the router that have a NIC session client as back end was introduced in a time when Uplink sessions didn't yet exist. Now, they do and, although both an uplink and an Uplink session normally describe a network session between router and network device driver, they are based on two different service types (NIC and Uplink). This can easily cause confusion when integrating the router (the <uplink> is not related to Uplink sessions) or trying to understand its functioning (an 'Uplink' object has nothing to do with the Uplink service). Therefore, this commit introduces the more specific term "NIC client" for an interface that is based on a NIC session requested by the router. This doesn't imply any semantic changes at the NIC router. However, the commit also brings a broader update of the router's README and removes the term "downlink" that was used only in documentation to refer to interfaces backed by a NIC session provided by the router. The term was only associated with this meaning because it is the natural counterpart to an uplink. This isn't appropriate anymore as the terms for interface types have moved to a more technical level. The commit adjusts all scenarios in the basic Genode repositories properly. Fixes #4238
2021-07-27 11:52:21 +00:00
<nic-client domain="uplink" />
<domain name="uplink">
<nat domain="default"
tcp-ports="1000"
udp-ports="1000"
icmp-ids="1000"/>
</domain>
<domain name="default" interface="10.0.1.1/24">
<dhcp-server ip_first="10.0.1.2"
ip_last="10.0.1.200"
dns_config_from="uplink"/>
<tcp dst="0.0.0.0/0"><permit-any domain="uplink"/></tcp>
<udp dst="0.0.0.0/0"><permit-any domain="uplink"/></udp>
<icmp dst="0.0.0.0/0" domain="uplink"/>
</domain>
</config>
<content>
<rom label="ld.lib.so"/>
<rom label="nic_router"/>
</content>
</runtime>