[Xorp-cvs] XORP cvs commit: xorp/fea xorp/fea/data_plane/control_socket xorp/fea/data_plane/ifconfig xorp/libxipc xorp/libxorp
Pavlin Radoslavov
pavlin at icir.org
Wed Jun 20 23:10:25 PDT 2007
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin at xorpc.icir.org 2007-06-21 06:10:25 UTC
XORP CVS repository
Modified files:
fea xrl_socket_server.cc
fea/data_plane/control_socket routing_socket_utilities.cc
fea/data_plane/ifconfig ifconfig_parse_getifaddrs.cc
libxipc sockutil.cc
libxorp ipv4.cc ipv6.cc ipv6.hh ipvx.cc utility.h
Log message:
Fixed alignment related warnings.
On some architectures casting a "(struct sockaddr *)" pointer to
"(struct sockaddr_in *)" or "(struct sockaddr_in6 *)" pointer generates
a warning like:
warning: cast from 'sockaddr*' to 'sockaddr_in*' increases required
alignment of target type
In general such casting shouldn't create any alignment issues and
shouldn't generate such warning.
Now we need to use the following inline functions when performing
the casting: sockaddr2sockaddr_in() and sockaddr2sockaddr_in6().
This fixes a compilation problem on Sun Blade 150+Ubuntu 7.04 Server
with gcc-4.1.2
Bug found by: Sukrit Dasgupta <sd88 AT drexel.edu>
Revision Changes Path
1.7 +4 -4; commitid: 668e467a15237ea6; xorp/fea/data_plane/control_socket/routing_socket_utilities.cc
1.10 +6 -6; commitid: 668e467a15237ea6; xorp/fea/data_plane/ifconfig/ifconfig_parse_getifaddrs.cc
1.39 +5 -5; commitid: 668e467a15237ea6; xorp/fea/xrl_socket_server.cc
1.26 +3 -3; commitid: 668e467a15237ea6; xorp/libxipc/sockutil.cc
1.31 +5 -5; commitid: 668e467a15237ea6; xorp/libxorp/ipv4.cc
1.31 +9 -9; commitid: 668e467a15237ea6; xorp/libxorp/ipv6.cc
1.37 +3 -3; commitid: 668e467a15237ea6; xorp/libxorp/ipv6.hh
1.31 +3 -3; commitid: 668e467a15237ea6; xorp/libxorp/ipvx.cc
1.16 +49 -1; commitid: 668e467a15237ea6; xorp/libxorp/utility.h
More information about the Xorp-cvs
mailing list