mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-03 06:24:21 +01:00
We need to be able to get the IP family from the netlink route meesages, and the Route.Family field only got recently added to the netlink package. The update generates static check warnings about the call for nethandler.Delete() being deprecated in favor of a Close() call instead. So we include the s/Delete()/Close()/ change as part of this PR. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
22 lines
307 B
Go
22 lines
307 B
Go
// +build !linux
|
|
|
|
package netlink
|
|
|
|
import "strconv"
|
|
|
|
func (r *Route) ListFlags() []string {
|
|
return []string{}
|
|
}
|
|
|
|
func (n *NexthopInfo) ListFlags() []string {
|
|
return []string{}
|
|
}
|
|
|
|
func (s Scope) String() string {
|
|
return "unknown"
|
|
}
|
|
|
|
func (p RouteProtocol) String() string {
|
|
return strconv.Itoa(int(p))
|
|
}
|