netlink: move Route type to common arch file

Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
This commit is contained in:
Johan Euphrosine 2014-01-17 13:12:08 -08:00
parent 612d2298ab
commit abbdc2b6ce
2 changed files with 15 additions and 7 deletions

View file

@ -471,13 +471,6 @@ func NetworkLinkAdd(name string, linkType string) error {
return s.HandleAck(wb.Seq)
}
// A Route is a subnet associated with the interface to reach it.
type Route struct {
*net.IPNet
Iface *net.Interface
Default bool
}
// Returns an array of IPNet for all the currently routed subnets on ipv4
// This is similar to the first column of "ip route" output
func NetworkGetRoutes() ([]Route, error) {