1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Do not rewrite all ro_flags.

This commit is contained in:
Alexander V. Chernikov 2016-01-11 08:00:13 +00:00
parent 868a59a7e2
commit e5f3746abd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293656

View File

@ -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;
}