Lines Matching refs:len
57 static void sss_packet_set_len(struct sss_packet *packet, uint32_t len);
104 size_t totlen, len;
115 len = packet_len + size;
118 if (totlen < len) {
119 int n = len / SSSSRV_PACKET_MEM_SIZE + 1;
121 if (totlen < len) {
180 size_t len;
184 if (packet->iop > 4) len = sss_packet_get_len(packet) - packet->iop;
185 else len = packet->memsize - packet->iop;
188 if (len > packet->memsize) {
193 rb = recv(fd, buf, len, 0);
226 size_t len;
235 len = sss_packet_get_len(packet) - packet->iop;
238 rb = send(fd, buf, len, 0);
290 static void sss_packet_set_len(struct sss_packet *packet, uint32_t len)
292 SAFEALIGN_SETMEM_UINT32(packet->buffer + SSS_PACKET_LEN_OFFSET, len, NULL);
303 uint32_t len;
305 SAFEALIGN_COPY_UINT32(&len, packet->buffer + SSS_PACKET_LEN_OFFSET, NULL);
306 return len;