From e5f3746abd5d28b3ba8b9cd3421e7e8558fedaef Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Mon, 11 Jan 2016 08:00:13 +0000 Subject: [PATCH] Do not rewrite all ro_flags. --- sys/net/route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route.h b/sys/net/route.h index 97709f17247e..f30a72fb31ed 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -228,7 +228,7 @@ rt_update_ro_flags(struct route *ro) ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW); - ro->ro_flags = (rt_flags & RTF_REJECT) ? RT_REJECT : 0; + ro->ro_flags |= (rt_flags & RTF_REJECT) ? RT_REJECT : 0; ro->ro_flags |= (rt_flags & RTF_BLACKHOLE) ? RT_BLACKHOLE : 0; ro->ro_flags |= (rt_flags & RTF_GATEWAY) ? RT_HAS_GW : 0; }