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

Pavlin Radoslavov pavlin at icir.org
Mon Aug 28 16:20:27 PDT 2006


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

XORP CVS repository


Modified files:
	fea           mfea_mrouter.cc mfea_proto_comm.cc rawsock.cc 

Log message:
	Create a local copy the following structures before accessing their
	fields: "igmpmsg", "mrt6msg", "pim".
	
	This fixes some alignment-related compilation issues.
	
	One possible alternative would be to use new classes
	(say, IgmpmsgHeader) that use the extract_xx() mechanism to extract
	each field from the corresponding offset (e.g., see the IpHeader4
	implementation inside "libproto/packet.hh").
	Such solution is probably an overkill, and it might be even slower
	compared to the memcpy() mechanism.

Revision  Changes                                 Path
1.49      +33 -36;  commitid: 12a9344f378f27ea6;  xorp/fea/mfea_mrouter.cc
1.62      +10 -11;  commitid: 12a9344f378f27ea6;  xorp/fea/mfea_proto_comm.cc
1.31      +10 -11;  commitid: 12a9344f378f27ea6;  xorp/fea/rawsock.cc



More information about the Xorp-cvs mailing list