Add support for setting route flags back

Removed in dfdad47 probably unintentionally.

resolves #93
This commit is contained in:
Anton Aksola 2016-02-15 15:44:08 +02:00
parent b495efb88c
commit 7ff102806b
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ func routeHandle(route *Route, req *nl.NetlinkRequest, msg *nl.RtMsg) error {
msg.Type = uint8(route.Type)
}
msg.Flags = uint32(route.Flags)
msg.Scope = uint8(route.Scope)
msg.Family = uint8(family)
req.AddData(msg)