[Xorp-cvs] XORP cvs commit: xorp/fea

Pavlin Radoslavov pavlin at icir.org
Wed Aug 30 14:23:36 PDT 2006


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin at xorpc.icir.org	2006-08-30 21:23:36 UTC

XORP CVS repository


Modified files:
	fea           routing_socket_utils.cc 

Log message:
	Fix the mechanism inside RtmUtils::get_sock_mask_len() for
	calculating the network mask length for an IPv6 mask address.
	
	Note that sometimes the "struct sockaddr *" pointer might not
	contain the whole mask (i.e., the octets with zero at the end).
	Hence, we need to copy the mask to a "sockaddr_in6" storage that
	has been zeroed in advance, and then calculate the network mask.
	This solution is derived from the FreeBSD-6.1 route(8) source code
	(inside file route.c, function routename()).
	
	Bug found by:   "A.H.T" <ahthamrin at gmail.com>

Revision  Changes                               Path
1.36      +7 -3;  commitid: 17c1944f600ac7ea6;  xorp/fea/routing_socket_utils.cc



More information about the Xorp-cvs mailing list