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:
+3
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user