--- ./libxipc/xrl_atom.cc.orig 2008-10-27 11:41:32.000000000 +0000 +++ ./libxipc/xrl_atom.cc 2008-10-27 11:42:10.000000000 +0000 @@ -28,6 +28,8 @@ #include "libxorp/c_format.hh" #include "libxorp/xlog.h" +#include "libproto/packet.hh" + #include #include @@ -1062,8 +1064,7 @@ if (len < sizeof(tl)) return 0; - tl = *(reinterpret_cast(buf)); - tl = ntohl(tl); + tl = extract_32(buf); buf += sizeof(tl); len -= sizeof(tl);