From owner-cvs-sys Mon Oct 16 12:11:18 1995 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17657 for cvs-sys-outgoing; Mon, 16 Oct 1995 12:11:18 -0700 Received: (from wollman@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17617 ; Mon, 16 Oct 1995 12:09:44 -0700 Date: Mon, 16 Oct 1995 12:09:44 -0700 From: "Garrett A. Wollman" Message-Id: <199510161909.MAA17617@freefall.freebsd.org> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/net route.c Sender: owner-cvs-sys@FreeBSD.org Precedence: bulk wollman 95/10/16 12:09:43 Modified: sys/net route.c Log: When adding a route fails because there is already a route with the same (mask,value) in the tree, don't immediately return EEXIST. Instead, check to see if the pre-existing route was generated by protcol-cloning. If so, then it is OK to simply blow away the old route and re-attempt the insertion. If not, then fall back to the same error code as before.