net/interfaces, net/netns: move default route interface code to interfaces

To populate interfaces.State.DefaultRouteInterface.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-09-22 14:20:01 -07:00
parent fda9dc8815
commit 8893c2ee78
3 changed files with 75 additions and 40 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !linux
// +build !linux,!windows
package interfaces