net/interfaces: add IsExpensive and up state to State

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-04-09 19:10:55 -07:00
committed by Brad Fitzpatrick
parent a55c4217db
commit c0697e1feb
3 changed files with 35 additions and 2 deletions

View File

@ -644,6 +644,7 @@ func (e *userspaceEngine) LinkChange(isExpensive bool) {
e.logf("LinkChange: interfaces.GetState: %v", err)
return
}
cur.IsExpensive = isExpensive
needRebind := e.setLinkState(cur)
e.logf("LinkChange(isExpensive=%v); needsRebind=%v", isExpensive, needRebind)