From owner-cvs-src@FreeBSD.ORG Fri Apr 30 15:34:13 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0393716A4CE; Fri, 30 Apr 2004 15:34:13 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4CFD43D31; Fri, 30 Apr 2004 15:34:12 -0700 (PDT) (envelope-from ambrisko@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3UMYCGe067996; Fri, 30 Apr 2004 15:34:12 -0700 (PDT) (envelope-from ambrisko@repoman.freebsd.org) Received: (from ambrisko@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3UMYCU8067995; Fri, 30 Apr 2004 15:34:12 -0700 (PDT) (envelope-from ambrisko) Message-Id: <200404302234.i3UMYCU8067995@repoman.freebsd.org> From: Doug Ambrisko Date: Fri, 30 Apr 2004 15:34:12 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ifconfig ifconfig.c src/sbin/route route.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 22:34:13 -0000 ambrisko 2004/04/30 15:34:12 PDT FreeBSD src repository Modified files: sbin/ifconfig ifconfig.c sbin/route route.c Log: For both ifconfig and route if we didn't get enough memory from the prior sysctl due to the structure growing between calls try again. Also try again for deleting routes if things fail. We've seen route -f fail this way which does not actually flush all routes. This fixes it. It will whine but it will do the work. PR: 56732 Obtained from: IronPort Revision Changes Path 1.104 +10 -2 src/sbin/ifconfig/ifconfig.c 1.73 +22 -4 src/sbin/route/route.c