Expose AFI on routes

This commit is contained in:
Oliver Geiselhardt-Herms 2021-05-19 07:26:52 -07:00 committed by Alessandro Boch
parent 079db23e21
commit d1fad16de5
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ type Route struct {
MultiPath []*NexthopInfo
Protocol RouteProtocol
Priority int
Family int
Table int
Type int
Tos int

View File

@ -1098,6 +1098,7 @@ func deserializeRoute(m []byte) (Route, error) {
Type: int(msg.Type),
Tos: int(msg.Tos),
Flags: int(msg.Flags),
Family: int(msg.Family),
}
var encap, encapType syscall.NetlinkRouteAttr