implement auto gateway Ip auto detection (#25)

Reviewed-on: #25
implemented #19
This commit was merged in pull request #25.
This commit is contained in:
2026-07-14 19:32:02 +01:00
parent 74de317ecb
commit a08cd30853
5 changed files with 119 additions and 12 deletions
+3 -2
View File
@@ -9,7 +9,7 @@
#ifndef ENABLE_LOGGING
#define ENABLE_LOGGING 1
#endif
#define DEFAULT_CONTROLLER_IP "10.10.10.1"
#define DEFAULT_CONTROLLER_IP ""
#define DEFAULT_LAN_IF "br-lan"
#define DEFAULT_UFMODEL "uapg2-ac-lr"
#define DEFAULT_INFORM_INTERVAL 10
@@ -39,7 +39,8 @@ typedef struct {
} openuf_config_t;
/* Parse /etc/openuf/openuf.conf (simple key=value).
* Fills *cfg with defaults first, then overrides from file. */
* Fills *cfg with defaults first, then overrides from file.
* An empty controller_ip selects default-gateway autodetection. */
void config_load(openuf_config_t *cfg);
#endif /* OPENUF_CONFIG_H */