Lines Matching refs:packetLen

1395     int packetLen;  in readReq()  local
1413 packetLen = verifyHeader( &pReq->m_pHeader->m_pktHeader, LSAPI_BEGIN_REQUEST ); in readReq()
1414 if ( packetLen < 0 ) in readReq()
1419 if ( packetLen > LSAPI_MAX_HEADER_LEN ) in readReq()
1425 if ( packetLen + 1024 > pReq->m_reqBufSize ) in readReq()
1427 if ( allocateBuf( pReq, packetLen + 1024 ) == -1 ) in readReq()
1430 while( packetLen > pReq->m_bufRead ) in readReq()
1432 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1437 if ( parseRequest( pReq, packetLen ) < 0 ) in readReq()
1451 pReq->m_bufProcessed = packetLen; in readReq()
1875 ssize_t packetLen; in LSAPI_Write_r() local
1915 packetLen = toWrite + bufLen; in LSAPI_Write_r()
1916 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_r()
1918 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_r()
1919 toWrite = packetLen - bufLen; in LSAPI_Write_r()
1923 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_r()
1924 pReq->m_totalLen += packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_r()
2159 ssize_t packetLen; in LSAPI_Write_Stderr_r() local
2177 while( ( packetLen = pEnd - p ) > 0 ) in LSAPI_Write_Stderr_r()
2179 if ( LSAPI_MAX_DATA_PACKET_LEN < packetLen) in LSAPI_Write_Stderr_r()
2181 packetLen = LSAPI_MAX_DATA_PACKET_LEN; in LSAPI_Write_Stderr_r()
2185 packetLen + LSAPI_PACKET_HEADER_LEN ); in LSAPI_Write_Stderr_r()
2186 totalLen = packetLen + LSAPI_PACKET_HEADER_LEN; in LSAPI_Write_Stderr_r()
2192 iov[1].iov_len = packetLen; in LSAPI_Write_Stderr_r()
2193 p += packetLen; in LSAPI_Write_Stderr_r()