No subject



Fri Sep 12 15:39:09 2003
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Fri, 12 Sep 2003 15:40:02 -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 h8CMe1FO020392
	for <atanu@tigger.icir.org>; Fri, 12 Sep 2003 15:40:02 -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 h8CMe1LL093682
	for <atanu@icir.org>; Fri, 12 Sep 2003 15:40: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 h8CMe0wG008305;
	Fri, 12 Sep 2003 15:40:00 -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 h8CMdAwG008274
	for <xorp-cvs@icsi.berkeley.edu>; Fri, 12 Sep 2003 15:39:10 -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 h8CMd9LL093672
	for <xorp-cvs@icir.org>; Fri, 12 Sep 2003 15:39:09 -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 h8CMd9kN091340
	for <xorp-cvs@icir.org>; Fri, 12 Sep 2003 15:39:09 -0700 (PDT)
	(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
	by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h8CMd90o091339;
	Fri, 12 Sep 2003 15:39:09 -0700 (PDT)
	(envelope-from pavlin)
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200309122239.h8CMd90o091339@xorpc.icir.org>
Date:     Fri, 12 Sep 2003 15:39:09  ()
To: xorp-cvs@icir.org
Reply-To: pavlin@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/fea/ ifconfig_get_proc_linux.cc
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/09/12 15:39:09

Modified files:
	xorp/fea/: ifconfig_get_proc_linux.cc 

Log message:
	* Refactor the /proc information fetch mechanism (mostly the IPv4
	case):
	- First we call the ioctl()'s pull_config() to get most
	of the interface information (including the IP aliases information).
	- Then, in case of IPv4 we get the list of interfaces from
	/proc/net/dev . This info would include the tunnel interface names
	that is not returned by the ioctl(SIOCGIFCONF) method.
	Then, for every interface name that is not on the interface tree
	(i.e., that ioctl(SIOCGIFCONF) doesn't know about)
	we call IfConfigIoctl::parse_buffer_ifreq() that will call
	various ioctl()'s to fill-in the missing info for that interface
	(MTU, IP address, etc).
	This is the model used by Linux's ifconfig (from net-tools), and
	seems to be the only workaround of collecting all the missing
	interface information.
	
	* Few tweaks to the IPv6 case, where we need to use /proc/net/if_inet6
	to get the IP addresses, etc (similar to Linux's ifconfig).
	We still don't obtain the endpoint address in case of IPv6 point-to-point
	interfaces, because there is no information in ifconfig's source code
	or the Linux kernel code how to do that. Could be that
	RedHat-7.x (Linux kernel 2.4.x) doesn't support IPv6 tunnels?

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