No subject



Tue Jan 28 11:15:17 2003
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Tue, 28 Jan 2003 11:16:03 -0800
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.3/8.12.3) with ESMTP id h0SJG2ws084763
	for <atanu@tigger.icir.org>; Tue, 28 Jan 2003 11:16:02 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from ICSI.Berkeley.EDU (fruitcake.ICSI.Berkeley.EDU [192.150.186.11])
	by wyvern.icir.org (8.12.3/8.12.3) with ESMTP id h0SJG260054721
	for <atanu@icir.org>; Tue, 28 Jan 2003 11:16:02 -0800 (PST)
	(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.icsi.Berkeley.EDU (localhost [127.0.0.1])
	by ICSI.Berkeley.EDU (8.9.0/8.9.0) with ESMTP id LAA12365;
	Tue, 28 Jan 2003 11:16:02 -0800 (PST)
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by ICSI.Berkeley.EDU (8.9.0/8.9.0) with ESMTP id LAA12339
	for <xorp-cvs@icsi.berkeley.edu>; Tue, 28 Jan 2003 11:15:18 -0800 (PST)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
	by wyvern.icir.org (8.12.3/8.12.3) with ESMTP id h0SJFH60054715
	for <xorp-cvs@icir.org>; Tue, 28 Jan 2003 11:15:17 -0800 (PST)
	(envelope-from rizzo@xorpc.icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
	by xorpc.icir.org (8.12.3/8.12.3) with ESMTP id h0SJFH8a062406
	for <xorp-cvs@icir.org>; Tue, 28 Jan 2003 11:15:17 -0800 (PST)
	(envelope-from rizzo@xorpc.icir.org)
Received: (from rizzo@localhost)
	by xorpc.icir.org (8.12.3/8.12.3/Submit) id h0SJFHcm062405;
	Tue, 28 Jan 2003 11:15:17 -0800 (PST)
	(envelope-from rizzo)
From: Luigi Rizzo <rizzo@icir.org>
Message-Id: <200301281915.h0SJFHcm062405@xorpc.icir.org>
Date:     Tue, 28 Jan 2003 11:15:17  ()
To: xorp-cvs@icir.org
Reply-To: rizzo@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/libxorp/ asnum.hh  xorp/bgp/ aspath.cc main.cc open_packet.cc packet_coding_test.cc  	           packet_test.cc plumbing_test.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/bgp/
Changes by:	rizzo@xorpc.icir.org.	03/01/28 11:15:17

Modified files:
	xorp/libxorp/: asnum.hh 
	xorp/bgp/: aspath.cc main.cc open_packet.cc 
	           packet_coding_test.cc packet_test.cc plumbing_test.cc 

Log message:
	Make AsNum constructor explicit to catch places where we were
	using the wrong argument type in function calls.
	Add methods to construct AsNum from a memory block, and to
	copy_out() to a memory block, so that we do not have to repeat
	htons() and memcpy() all over the place (plus, this also avoids
	that we make assumptions on the alignment of data in memory buffers).
	
	It will be probably useful to introduce AsNum(int) constructor
	(with appropriate checks) given how many times we use this
	notation when manually constructing packets for test programs.

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