mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Verify compatibility before parsing config message
This adds a verion field to the ubus configuration message, to avoid acting upon a message from an incompatible version of dawn. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
parent
a7a830950a
commit
1e34357bdc
3 changed files with 15 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ void mac_array_delete(struct mac_entry_s* entry);
|
|||
// ---------------- Global variables ----------------
|
||||
/*** Metrics and configuration data ***/
|
||||
|
||||
// TODO: Define a proper version string
|
||||
#ifndef DAWN_CONFIG_VERSION
|
||||
#define DAWN_CONFIG_VERSION "1"
|
||||
#endif
|
||||
|
||||
// ---------------- Structs ----------------
|
||||
struct probe_metric_s {
|
||||
int ap_weight; // TODO: Never evaluated?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue