Remove now-unused RTF_RNH_LOCKED route flag.

MFC after:	1 week
This commit is contained in:
Alexander V. Chernikov 2021-02-14 13:45:14 +00:00
parent 8d06c3e7a4
commit 64d5c27777
2 changed files with 1 additions and 3 deletions

View File

@ -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 */

View File

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