mirror of
https://github.com/vishvananda/netlink
synced 2025-03-20 10:06:41 +00:00
Expose AFI on routes
This commit is contained in:
parent
079db23e21
commit
d1fad16de5
1
route.go
1
route.go
@ -41,6 +41,7 @@ type Route struct {
|
|||||||
MultiPath []*NexthopInfo
|
MultiPath []*NexthopInfo
|
||||||
Protocol RouteProtocol
|
Protocol RouteProtocol
|
||||||
Priority int
|
Priority int
|
||||||
|
Family int
|
||||||
Table int
|
Table int
|
||||||
Type int
|
Type int
|
||||||
Tos int
|
Tos int
|
||||||
|
@ -1098,6 +1098,7 @@ func deserializeRoute(m []byte) (Route, error) {
|
|||||||
Type: int(msg.Type),
|
Type: int(msg.Type),
|
||||||
Tos: int(msg.Tos),
|
Tos: int(msg.Tos),
|
||||||
Flags: int(msg.Flags),
|
Flags: int(msg.Flags),
|
||||||
|
Family: int(msg.Family),
|
||||||
}
|
}
|
||||||
|
|
||||||
var encap, encapType syscall.NetlinkRouteAttr
|
var encap, encapType syscall.NetlinkRouteAttr
|
||||||
|
Loading…
Reference in New Issue
Block a user