Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 22:27:40 GMT
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4904fbfc7201 - stable/13 - Remove now-unused RTF_RNH_LOCKED route flag.
Message-ID:  <202103102227.12AMRerA032353@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=4904fbfc7201cf670b0351092bd26bfeae776081

commit 4904fbfc7201cf670b0351092bd26bfeae776081
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2021-02-14 13:45:14 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2021-03-10 21:45:07 +0000

    Remove now-unused RTF_RNH_LOCKED route flag.
    
    (cherry picked from commit 64d5c2777731c1376dd44b6a5fdb68b168d073dc)
---
 sys/net/route.h  | 2 +-
 sys/net/rtsock.c | 2 --
 2 files changed, 1 insertion(+), 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 ba1182d55439..7beb6ff347fe 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -587,8 +587,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 ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103102227.12AMRerA032353>