No subject



Mon Jun 2 16:20:17 2003
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Mon, 02 Jun 2003 16:21:01 -0700
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.8p1/8.12.3) with ESMTP id h52NL1CH083575
	for <atanu@tigger.icir.org>; Mon, 2 Jun 2003 16:21:01 -0700 (PDT)
	(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.8p1/8.12.3) with ESMTP id h52NL1DD023490;
	Mon, 2 Jun 2003 16:21:01 -0700 (PDT)
	(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.9/8.12.9) with ESMTP id h52NL1bb013901;
	Mon, 2 Jun 2003 16:21:01 -0700 (PDT)
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by fruitcake.ICSI.Berkeley.EDU (8.12.9/8.12.9) with ESMTP id h52NKHbb013886
	for <xorp-cvs@icsi.berkeley.edu>; Mon, 2 Jun 2003 16:20:17 -0700 (PDT)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
	by wyvern.icir.org (8.12.8p1/8.12.3) with ESMTP id h52NKHDD023483
	for <xorp-cvs@icir.org>; Mon, 2 Jun 2003 16:20:17 -0700 (PDT)
	(envelope-from pavlin@xorpc.icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
	by xorpc.icir.org (8.12.8p1/8.12.3) with ESMTP id h52NKHQg088317
	for <xorp-cvs@icir.org>; Mon, 2 Jun 2003 16:20:17 -0700 (PDT)
	(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
	by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h52NKHIG088316;
	Mon, 2 Jun 2003 16:20:17 -0700 (PDT)
	(envelope-from pavlin)
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200306022320.h52NKHIG088316@xorpc.icir.org>
Date:     Mon,  2 Jun 2003 16:20:17  ()
To: xorp-cvs@icir.org
Reply-To: pavlin@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/fea/ fticonfig_entry_get.hh fticonfig_entry_get_netlink.cc  	           fticonfig_table_get.hh fticonfig_table_get_netlink.cc  	           netlink_socket.cc netlink_socket.hh
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
Repository:	xorp/fea/
Changes by:	pavlin@xorpc.icir.org.	03/06/02 16:20:17

Modified files:
	xorp/fea/: fticonfig_entry_get.hh fticonfig_entry_get_netlink.cc 
	           fticonfig_table_get.hh fticonfig_table_get_netlink.cc 
	           netlink_socket.cc netlink_socket.hh 

Log message:
	Fix a Netlink-related problem for Linux.
	
	Unlike routing sockets which when opened with AF_UNSPEC as the
	third argument have dual IPv4/IPv6 status, we cannot open a netlink
	socket that is dual (i.e., the third argument must be either
	NETLINK_ROUTE or NETLINK_ROUTE6).
	
	Hence, added two new classes NetlinkSocket4 and NetlinkSocket6
	that use the existing NetlinkSocket class as a base class.
	Then, a NetlinkObserver constructor is created with two arguments:
	ns4 and ns6, so it is observing both IPv4 and IPv6 netlink sockets.
	When data is received on either ns4 or ns6, it is passed to the
	same observer, and then processed as necessary. The data processing
	was already dual IPv4/IPv6, hence we don't really care to know
	whether the data came from ns4 or ns6.
	
	The IPv4 code appears to work; the IPv6 code is untested
	(though, I am not sure whether NETLINK_ROUTE6 is really
	implemented in the kernel).
	
	After this fix, pim/test_pim appears to work on Linux as well.

_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs