X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/4a160f880ce46153acb23b137f30fd588df5fb9d..6b5e09540e9392a7015fae1ad3b01b0973600ff2:/rpc/connection.cc diff --git a/rpc/connection.cc b/rpc/connection.cc index 315a82e..e269a3d 100644 --- a/rpc/connection.cc +++ b/rpc/connection.cc @@ -160,7 +160,7 @@ bool connection::writepdu() { bool connection::readpdu() { IF_LEVEL(5) LOG("the receive buffer has length " << rpdu_.buf.size()); if (!rpdu_.buf.size()) { - rpc_sz_t sz1; + rpc_protocol::rpc_sz_t sz1; ssize_t n = fd_.read(sz1); if (n == 0) @@ -178,7 +178,7 @@ bool connection::readpdu() { size_t sz = ntoh(sz1); - if (sz > MAX_PDU) { + if (sz > rpc_protocol::MAX_PDU) { IF_LEVEL(2) LOG("read pdu TOO BIG " << sz << " network order=" << hex << sz1); return false; }