Don't even attempt to clone host routes.

MFC after:	1 week
This commit is contained in:
ru 2001-10-15 09:46:48 +00:00
parent 239df19262
commit a739a71344

View File

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