network: Handle ip route priority

When there's a new default route with higher priority, switch to it.
This commit is contained in:
Anthony PERARD
2021-06-02 22:15:34 +01:00
parent ce97df34e6
commit efaac20d82
2 changed files with 17 additions and 10 deletions

View File

@ -72,6 +72,7 @@ class Network : public ALabel {
int32_t signal_strength_dbm_;
uint8_t signal_strength_;
uint32_t frequency_;
uint32_t route_priority;
util::SleeperThread thread_;
util::SleeperThread thread_timer_;