Lines Matching defs:rep_len
60 static int reply_to_id(id_t *idp, uint8_t *rep, size_t rep_len);
61 static int reply_to_name(char *name, size_t len, uint8_t *rep, size_t rep_len);
227 size_t rep_len = 0;
232 rc = send_recv(&rep, &rep_len, cmd, name, name_len + 1);
234 rc = reply_to_id(id, rep, rep_len);
246 size_t rep_len = 0;
252 rc = send_recv(&rep, &rep_len, cmd, &req, req_len);
254 rc = reply_to_name(name, len, rep, rep_len);
263 static int send_recv(uint8_t **rep, size_t *rep_len, enum sss_cli_command cmd,
274 req_rc = sss_nss_make_request(cmd, &rd, rep, rep_len, &err);
288 static int reply_to_id(id_t *idp, uint8_t *rep, size_t rep_len)
294 if (rep_len < sizeof(uint32_t)) {
295 IDMAP_LOG(0, ("%s: reply too small; rep_len=%lu", __func__, rep_len));
310 if (rep_len < sizeof(uint32_t) + REPLY_ID_OFFSET) {
311 IDMAP_LOG(0, ("%s: reply too small(2); rep_len=%lu", __func__,
312 rep_len));
324 static int reply_to_name(char *name, size_t len, uint8_t *rep, size_t rep_len)
332 if (rep_len < sizeof(uint32_t)) {
333 IDMAP_LOG(0, ("%s: reply too small; rep_len=%lu", __func__, rep_len));
348 if (rep_len < sizeof(uint32_t) + REPLY_NAME_OFFSET) {
349 IDMAP_LOG(0, ("%s: reply too small(2); rep_len=%lu", __func__,
350 rep_len));
356 buf_len = rep_len - REPLY_NAME_OFFSET;