From owner-cvs-src@FreeBSD.ORG Thu Feb 14 20:01:52 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E705116A469; Thu, 14 Feb 2008 20:01:52 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D43C113C46B; Thu, 14 Feb 2008 20:01:52 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1EK1qVx019175; Thu, 14 Feb 2008 20:01:52 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1EK1qJH019174; Thu, 14 Feb 2008 20:01:52 GMT (envelope-from jhb) Message-Id: <200802142001.m1EK1qJH019174@repoman.freebsd.org> From: John Baldwin Date: Thu, 14 Feb 2008 20:01:52 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/netstat route.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 14 Feb 2008 20:01:53 -0000 jhb 2008-02-14 20:01:52 UTC FreeBSD src repository Modified files: usr.bin/netstat route.c Log: Make netstat -rn more resilient to having the routing table change out from under it while running. Note that this is still not perfect: - Try to do something intelligent if kvm_read() fails to read a routing table structure such as an rtentry, radix_node, or ifnet. - Don't follow left and right node pointers in radix_nodes unless RNF_ACTIVE is set in rn_flags. This avoids walking through freed radix_nodes. MFC after: 1 week Revision Changes Path 1.88 +43 -19 src/usr.bin/netstat/route.c