Author: melifaro
Date: Mon Jan 11 08:00:13 2016
New Revision: 293656
URL: https://svnweb.freebsd.org/changeset/base/293656
Log:
Do not rewrite all ro_flags.
Modified:
head/sys/net/route.h
Modified: head/sys/net/route.h
==============================================================================
--- head/sys/net/route.h Mon Jan 11 07:44:49 2016 (r293655)
+++ head/sys/net/route.h Mon Jan 11 08:00:13 2016 (r293656)
@@ -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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"