From 7ff102806b3547bdfb7cf141594ac0480652f82e Mon Sep 17 00:00:00 2001 From: Anton Aksola Date: Mon, 15 Feb 2016 15:44:08 +0200 Subject: [PATCH] Add support for setting route flags back Removed in dfdad47 probably unintentionally. resolves #93 --- route_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/route_linux.go b/route_linux.go index d8026a7..e7b8beb 100644 --- a/route_linux.go +++ b/route_linux.go @@ -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)