From owner-cvs-usrsbin Mon Dec 15 12:25:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA09662 for cvs-usrsbin-outgoing; Mon, 15 Dec 1997 12:25:04 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA09346; Mon, 15 Dec 1997 12:23:51 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id MAA18298; Mon, 15 Dec 1997 12:21:17 -0800 (PST) Date: Mon, 15 Dec 1997 12:21:17 -0800 (PST) Message-Id: <199712152021.MAA18298@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp route.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1997/12/15 12:21:17 PST Modified files: usr.sbin/ppp route.c Log: Do 2 passes when "delete all"ing. The first pass removes all RTF_WASCLONED routes, and the second removes the others. This avoids the situation where we've added an RTF_CLONING route (such as ``default''), created some clones, then deleted the CLONING route before the WASCLONED route(s). Without the two passes, we get errno (not rtm_errno) set to ESRCH when deleting the WASCLONED route, despite the deletion succeeding ! Also: Enhance the route operation failure diagnostics. Make portability #ifdefs a bit more generic. Revision Changes Path 1.32 +54 -28 src/usr.sbin/ppp/route.c