No subject



Mon Sep 22 8:44:21 2003
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Mon, 22 Sep 2003 08:45:01 -0700
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.9p1/8.12.3) with ESMTP id h8MFj1fw043219
	for <atanu@tigger.icir.org>; Mon, 22 Sep 2003 08:45: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.9p1/8.12.3) with ESMTP id h8MFj1H5038838
	for <atanu@icir.org>; Mon, 22 Sep 2003 08:45: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 h8MFj1wG000430;
	Mon, 22 Sep 2003 08:45: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 h8MFiLwG000413
	for <xorp-cvs@icsi.berkeley.edu>; Mon, 22 Sep 2003 08:44:21 -0700 (PDT)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
	by wyvern.icir.org (8.12.9p1/8.12.3) with ESMTP id h8MFiLH5038827
	for <xorp-cvs@icir.org>; Mon, 22 Sep 2003 08:44:21 -0700 (PDT)
	(envelope-from pavlin@xorpc.icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
	by xorpc.icir.org (8.12.9p1/8.12.3) with ESMTP id h8MFiLsd004962
	for <xorp-cvs@icir.org>; Mon, 22 Sep 2003 08:44:21 -0700 (PDT)
	(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
	by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id h8MFiLfZ004961;
	Mon, 22 Sep 2003 08:44:21 -0700 (PDT)
	(envelope-from pavlin)
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200309221544.h8MFiLfZ004961@xorpc.icir.org>
Date:     Mon, 22 Sep 2003  8:44:21  ()
To: xorp-cvs@icir.org
Reply-To: pavlin@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/fea/ 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/09/22 08:44:21

Modified files:
	xorp/fea/: netlink_socket.cc netlink_socket.hh 

Log message:
	Implement properly the reading of a large or multipart netlink
	message:
	- When reading from a netlink socket, first use repetitive
	recv(MSG_DONTWAIT | MSG_PEEK) to find the size of the message
	in the socket (in case the original size estimation is wrong).
	- When reading a netlink message from a socket, check the
	NLM_F_MULTI flag in the netlink message header. If this
	flag is set, then this is a multipart message that must
	be terminated by a NLMSG_DONE message. Hence, read all
	messages up to (and including) the NLMSG_DONE, and pass
	them together to the observer(s).

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