[freeboxos] Support randomized MAC addresses by using mDNS name for Wi-Fi hosts (#15299)

* Take care of randomized mac addresses by using mDNS name for wifi hosts.

Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital
2023-08-01 12:16:59 +02:00
committed by GitHub
parent d499f2c777
commit e792a92a38
12 changed files with 182 additions and 43 deletions

View File

@@ -97,15 +97,28 @@ The *landline* thing requires the following configuration parameters:
|------------------|-----------------|------------------------------------------------------------------------|----------|---------|
| Refresh Interval | refreshInterval | The refresh interval in seconds which is used to poll for phone state. | No | 2 |
### Network devices: Host and WifiHost
### Network devices: Host
The *host* and *wifihost* things requires the following configuration parameters:
The *host* thing requires the following configuration parameters:
| Parameter Label | Parameter ID | Description | Required | Default |
|------------------|-----------------|------------------------------------------------------------------------|----------|---------|
| MAC Address | macAddress | The MAC address of the network host . | Yes | |
| MAC Address | macAddress | The MAC address of the network host. | Yes | |
| Refresh Interval | refreshInterval | The refresh interval in seconds which is used to poll for phone state. | No | 30 |
### Network devices: WifiHost
The *wifihost* thing requires the following configuration parameters:
| Parameter Label | Parameter ID | Description | Required | Default |
|------------------|-----------------|------------------------------------------------------------------------|----------|---------|
| MAC Address | macAddress | The MAC address of the network host. | Yes | |
| Refresh Interval | refreshInterval | The refresh interval in seconds which is used to poll for phone state. | No | 30 |
| mDNS Name | mDNS | The mDNS name of the host. Useful in case of virtual MAC. | No | |
When used, mDNS will search the host based on its mDNS name and eventually update the MAC address accordingly.
This is useful with devices, especially Apple equipment, that uses randomly generated MAC addresses.
### Repeater and Vm thing
The *repeater* thing is a specialized case of a *wifihost*. The *vm* derives from *host*. They share the same configuration definition: