This message isn't used in base and I couldn't find a use for it in
codesearch.debian.net. It is redundant with RTM_CHANGE.
As I an now trying to make the content of 'struct rtentry' mp-safe
without relying on the NET_LOCK(), getting rid of this message would
help me.
Ok?
Index: sbin/route/route.c
===================================================================
RCS file: /cvs/src/sbin/route/route.c,v
retrieving revision 1.215
diff -u -p -r1.215 route.c
--- sbin/route/route.c 18 Jun 2018 09:17:06 -0000 1.215
+++ sbin/route/route.c 28 Jun 2018 12:08:57 -0000
@@ -1206,9 +1206,9 @@ char *msgtypes[] = {
"RTM_LOSING: Kernel Suspects Partitioning",
"RTM_REDIRECT: Told to use different route",
"RTM_MISS: Lookup failed on this address",
- "RTM_LOCK: fix specified metrics",
- "RTM_OLDADD: caused by SIOCADDRT",
- "RTM_OLDDEL: caused by SIOCDELRT",
+ "",
+ "",
+ "",
"RTM_RESOLVE: Route created by cloning",
"RTM_NEWADDR: address being added to iface",
"RTM_DELADDR: address being removed from iface",
Index: usr.sbin/route6d/route6d.c
===================================================================
RCS file: /cvs/src/usr.sbin/route6d/route6d.c,v
retrieving revision 1.94
diff -u -p -r1.94 route6d.c
--- usr.sbin/route6d/route6d.c 14 Jun 2018 14:55:10 -0000 1.94
+++ usr.sbin/route6d/route6d.c 28 Jun 2018 12:06:40 -0000
@@ -1608,7 +1608,6 @@ rtrecv(void)
case RTM_MISS:
case RTM_RESOLVE:
case RTM_GET:
- case RTM_LOCK:
/* nothing to be done here */
log_debug("\tnothing to be done, ignored");
return;
Index: sys/net/rtsock.c
===================================================================
RCS file: /cvs/src/sys/net/rtsock.c,v
retrieving revision 1.272
diff -u -p -r1.272 rtsock.c
--- sys/net/rtsock.c 25 Jun 2018 09:41:45 -0000 1.272
+++ sys/net/rtsock.c 28 Jun 2018 12:07:14 -0000
@@ -668,7 +668,6 @@ route_output(struct mbuf *m, struct sock
case RTM_DELETE:
case RTM_GET:
case RTM_CHANGE:
- case RTM_LOCK:
case RTM_PROPOSAL:
break;
default:
@@ -899,7 +898,6 @@ rtm_output(struct rt_msghdr *rtm, struct
if_put(ifp);
break;
case RTM_CHANGE:
- case RTM_LOCK:
rt = rtable_lookup(tableid, info->rti_info[RTAX_DST],
info->rti_info[RTAX_NETMASK], info->rti_info[RTAX_GATEWAY],
prio);
@@ -1062,10 +1060,6 @@ change:
}
if_group_routechange(info->rti_info[RTAX_DST],
info->rti_info[RTAX_NETMASK]);
- NET_UNLOCK();
- /* FALLTHROUGH */
- case RTM_LOCK:
- NET_LOCK();
rt->rt_locks &= ~(rtm->rtm_inits);
rt->rt_locks |=
(rtm->rtm_inits & rtm->rtm_rmx.rmx_locks);
Index: sys/net/route.h
===================================================================
RCS file: /cvs/src/sys/net/route.h,v
retrieving revision 1.170
diff -u -p -r1.170 route.h
--- sys/net/route.h 25 Jun 2018 09:41:45 -0000 1.170
+++ sys/net/route.h 28 Jun 2018 12:08:53 -0000
@@ -231,7 +231,6 @@ struct rt_msghdr {
#define RTM_LOSING 0x5 /* Kernel Suspects Partitioning */
#define RTM_REDIRECT 0x6 /* Told to use different route */
#define RTM_MISS 0x7 /* Lookup failed on this address */
-#define RTM_LOCK 0x8 /* fix specified metrics */
#define RTM_RESOLVE 0xb /* req to resolve dst to LL addr */
#define RTM_NEWADDR 0xc /* address being added to iface */
#define RTM_DELADDR 0xd /* address being removed from iface */