mirror of
https://github.com/vishvananda/netlink
synced 2025-02-16 20:16:51 +00:00
Add support for setting route flags back
Removed in dfdad47 probably unintentionally. resolves #93
This commit is contained in:
parent
b495efb88c
commit
7ff102806b
@ -116,6 +116,7 @@ func routeHandle(route *Route, req *nl.NetlinkRequest, msg *nl.RtMsg) error {
|
|||||||
msg.Type = uint8(route.Type)
|
msg.Type = uint8(route.Type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg.Flags = uint32(route.Flags)
|
||||||
msg.Scope = uint8(route.Scope)
|
msg.Scope = uint8(route.Scope)
|
||||||
msg.Family = uint8(family)
|
msg.Family = uint8(family)
|
||||||
req.AddData(msg)
|
req.AddData(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user