mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-12 23:19:22 +01:00
e1e1c4edd1
Our simulated environment was really only meant to test air-to-air communication by using mac80211_hwsim. Protocols like DHCP use IP communication which starts to fall apart when using hwsim radios. Mainly unicast sockets do not work since there is no underlying network infrastructure. In order to simulate a more realistic environment network namespaces are introduced in this patch. This allows wireless phy's to be added to a network namespace and unique IWD instances manage those phys. This is done automatically when 'NameSpaces' entries are configured in hw.conf: [SETUP] num_radios=2 [NameSpaces] ns0=rad1,... This will create a namespace named ns0, and add rad1 to that namespace. rad1 will not appear as a phy in what's being called the 'root' namespace (the default namespace). As far as a test is concerned you can create a new IWD() class and pass the namespace in. This will start a new IWD instance in that namespace: ns0 = ctx.get_namespace('ns0') wd_ns0 = IWD(start_iwd=True, namespace=ns0) 'wd_ns0' can now be used to interact with IWD in that namespace, just like any other IWD class object. |
||
---|---|---|
.. | ||
hw.conf | ||
hwsim-dbus.conf | ||
hwsim.c | ||
hwsim.rst | ||
ios_convert.py | ||
probe-req.c | ||
run-iwd.sh | ||
test_runner_kernel_config | ||
test-runner |