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)