No subject



Thu Mar 3 18:50:32 2005
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Thu, 03 Mar 2005 10:51:01 -0800
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.11/8.12.8) with ESMTP id j23Ip1gM011711
	for <atanu@tigger.icir.org>; Thu, 3 Mar 2005 10:51:01 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.ICSI.Berkeley.EDU (fruitcake.ICSI.Berkeley.EDU [192.150.186.11])
	by wyvern.icir.org (8.12.9p1/8.12.8) with ESMTP id j23Ip0la066434
	for <atanu@icir.org>; Thu, 3 Mar 2005 10:51:00 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.ICSI.Berkeley.EDU (localhost [127.0.0.1])
	by fruitcake.ICSI.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id j23Ip0v4029809;
	Thu, 3 Mar 2005 10:51:00 -0800 (PST)
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by fruitcake.ICSI.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id j23IoWv4029787
	for <xorp-cvs@icsi.berkeley.edu>; Thu, 3 Mar 2005 10:50:32 -0800 (PST)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
	by wyvern.icir.org (8.12.9p1/8.12.8) with ESMTP id j23IoWla066432
	for <xorp-cvs@icir.org>; Thu, 3 Mar 2005 10:50:32 -0800 (PST)
	(envelope-from pavlin@icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
	by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id j23IoWn3091506
	for <xorp-cvs@icir.org>; Thu, 3 Mar 2005 10:50:32 -0800 (PST)
	(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
	by xorpc.icir.org (8.12.11/8.12.3/Submit) id j23IoWBM091505
	for xorp-cvs@icir.org; Thu, 3 Mar 2005 18:50:32 GMT
	(envelope-from pavlin)
Date: Thu, 3 Mar 2005 18:50:32 GMT
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200503031850.j23IoWBM091505@xorpc.icir.org>
To: xorp-cvs@icir.org
X-XORP-CVS-Branch: HEAD
Subject: [Xorp-cvs] XORP cvs commit: xorp/rib
Sender: xorp-cvs-admin@icir.org
Errors-To: xorp-cvs-admin@icir.org
X-BeenThere: xorp-cvs@icir.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:xorp-cvs-request@icir.org?subject=help>
List-Post: <mailto:xorp-cvs@icir.org>
List-Subscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
	<mailto:xorp-cvs-request@icir.org?subject=subscribe>
List-Id: Mailing list for XORP CVS commit messages <xorp-cvs.icir.org>
List-Unsubscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
	<mailto:xorp-cvs-request@icir.org?subject=unsubscribe>

CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-03-03 18:50:31 UTC

XORP CVS repository


Modified files:
	rib           rib.cc 

Log message:
	Refactor the mechanism for checking whether the nexthop is directly
	connected. The refactoring fixes a bug when we are adding a
	"connected" route and there are already routing entries in the RIB
	(e.g., if a new IP address is added to a network interface).
	
	Previously, we would lookup the nexthop address in the final table,
	and then we would use the corresponding vif to check whether the
	nexthop address is directly connected to that vif.
	However, this doesn't work if we are adding a "connected" route
	(which may use the local IP address as the next-hop router),
	and there is already, say, 0/0 routing entry. The lookup will
	return the vif toward the default router, but then the next-hop
	address of the "connected" route won't match as being
	directly-connected to that vif.

Revision  Changes    Path
1.51      +49 -55    xorp/rib/rib.cc
_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs