summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-05-27 22:37:47 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-05-27 22:37:47 +0000
commita2dcd3dc858f86b8af9b7178770687417bb769cf (patch)
treee3ff47e36403318ac03b454e40269fdbf70cc8e0
parentdf48933e8abfd0018e9285fe895e95b64bcf0a2b (diff)
Use rtm_fmask instead of rtm_use.
ok marius@ claudio@
-rw-r--r--sys/net/rtsock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index e965d69e68b..2b52966aac8 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.45 2005/05/27 07:11:21 mcbride Exp $ */
+/* $OpenBSD: rtsock.c,v 1.46 2005/05/27 22:37:46 mcbride Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -399,8 +399,9 @@ report:
/* XXX Hack to allow the jumbo flag to be toggled */
if (rtm->rtm_use & RTF_JUMBO)
- rt->rt_flags = (rt->rt_flags & ~rtm->rtm_use) |
- (rtm->rtm_flags & rtm->rtm_use);
+ rt->rt_flags = (rt->rt_flags &
+ ~rtm->rtm_fmask) |
+ (rtm->rtm_flags & rtm->rtm_fmask);
rt_setmetrics(rtm->rtm_inits, &rtm->rtm_rmx,
&rt->rt_rmx);