From owner-freebsd-net@FreeBSD.ORG Wed May 18 12:31:50 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52940106566B for ; Wed, 18 May 2011 12:31:50 +0000 (UTC) (envelope-from jack.shang@huawei.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 301278FC1D for ; Wed, 18 May 2011 12:31:49 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QMfun-0002MA-DZ for freebsd-net@freebsd.org; Wed, 18 May 2011 05:31:49 -0700 Date: Wed, 18 May 2011 05:31:49 -0700 (PDT) From: JACK To: freebsd-net@freebsd.org Message-ID: <1305721909414-4406356.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Is it a bug of RADIX ????? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 12:31:50 -0000 After inserting the following IPv4 routers: 0x360AD0A2/30 0x360ADFEC/20 0x360AD082/30 I try to delete the above routes, when delete the second route(0x360ADFEC/20), the operation fail. struct radix_node * rn_delete (........) { ... /* * Delete our route from mask lists. */ if (netmask != NULL) { if ((x = rn_addmask(netmask, TRUE, head_off)) == NULL) return (NULL); netmask = x->rn_key; while (tt->rn_mask != netmask) if ((tt = tt->rn_dupedkey) == NULL) return (NULL); // rn_delete return here!!! } ... } but, if I delete as the following order, all routers was deleted successfully: 0x360AD0A2/30 0x360AD082/30 0x360ADFEC/20 so, is it a bug of RADIX? /jack -- View this message in context: http://freebsd.1045724.n5.nabble.com/Is-it-a-bug-of-RADIX-tp4406356p4406356.html Sent from the freebsd-net mailing list archive at Nabble.com.