nic_bridge: simplified session request handling

1) A session request gets denied if there is no matching session policy.
   (The <defaul-policy/> tag can be used for the former default behavior)
2) A session request gets denied if the MAC address is given through the
   matching policy but this address cannot be allocated.
3) A session request gets denied if the MAC address is not given through the
   matching policy and it is also not possible to allocate one.

Issue #3040
This commit is contained in:
Martin Stein
2019-02-06 14:20:44 +01:00
committed by Norman Feske
parent 801aa46c46
commit 10b6b88b01
3 changed files with 40 additions and 68 deletions

View File

@@ -137,7 +137,7 @@ append_if [expr $use_bridge] config {
<start name="nic_bridge" priority="-1">
<resource name="RAM" quantum="6M"/>
<provides><service name="Nic"/></provides>
<config/>
<config> <default-policy/> </config>
<route>
<service name="Nic"><child name="nic_drv"/></service>
<any-service><parent/></any-service>