aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-02-14 13:45:14 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-02-15 20:49:59 +0000
commit64d5c2777731c1376dd44b6a5fdb68b168d073dc (patch)
tree17beeb9a45c7cc9ffc569c07e9af17472cbe75cd /sys
parent8d06c3e7a40831ac139d83b85b282206229b426f (diff)
downloadsrc-64d5c2777731c1376dd44b6a5fdb68b168d073dc.tar.gz
src-64d5c2777731c1376dd44b6a5fdb68b168d073dc.zip
Remove now-unused RTF_RNH_LOCKED route flag.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/net/route.h2
-rw-r--r--sys/net/rtsock.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index f9928ab6a776..ab6e1aabc5ae 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -197,7 +197,7 @@ VNET_DECLARE(u_int, fib_hash_outbound);
/* 0x8000000 and up unassigned */
#define RTF_STICKY 0x10000000 /* always route dst->src */
-#define RTF_RNH_LOCKED 0x40000000 /* radix node head is locked */
+/* 0x40000000 unused, was RTF_RNH_LOCKED */
#define RTF_GWFLAG_COMPAT 0x80000000 /* a compatibility bit for interacting
with existing routing apps */
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index f8e741d87a10..3a98b366dfc3 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -635,8 +635,6 @@ fill_addrinfo(struct rt_msghdr *rtm, int len, u_int fibnum, struct rt_addrinfo *
if (rt_xaddrs((caddr_t)(rtm + 1), len + (caddr_t)rtm, info))
return (EINVAL);
- if (rtm->rtm_flags & RTF_RNH_LOCKED)
- return (EINVAL);
info->rti_flags = rtm->rtm_flags;
if (info->rti_info[RTAX_DST] == NULL ||
info->rti_info[RTAX_DST]->sa_family >= AF_MAX ||