diff options
author | melifaro <melifaro@FreeBSD.org> | 2016-01-11 08:00:13 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2016-01-11 08:00:13 +0000 |
commit | 2d1014754e397b39dc0c8c0e2c63571bdd7faa2b (patch) | |
tree | 115860e33385aa2da60c9c7731bc2c3ef90b205f /sys | |
parent | 50c53b96da34f5b5d15b97bb2cfad78f89b37ec7 (diff) | |
download | FreeBSD-src-2d1014754e397b39dc0c8c0e2c63571bdd7faa2b.zip FreeBSD-src-2d1014754e397b39dc0c8c0e2c63571bdd7faa2b.tar.gz |
Do not rewrite all ro_flags.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 97709f1..f30a72f 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; } |