From a739a7134494c4b1539db3b41991582acc1ed5e0 Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 15 Oct 2001 09:46:48 +0000 Subject: [PATCH] Don't even attempt to clone host routes. MFC after: 1 week --- sys/net/route.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/net/route.c b/sys/net/route.c index 5ba4b361e146..11b45ab74f98 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -471,10 +471,12 @@ rtrequest(req, dst, gateway, netmask, flags, ret_nrt) senderr(ESRCH); /* * If we are adding a host route then we don't want to put - * a netmask in the tree + * a netmask in the tree, nor do we want to clone it. */ - if (flags & RTF_HOST) + if (flags & RTF_HOST) { netmask = 0; + flags &= ~(RTF_CLONING | RTF_PRCLONING); + } switch (req) { case RTM_DELETE: /*