Lines Matching refs:buf_used
54 msg->buf_used = sizeof(*msg->hdr);
86 msg->buf_size = msg->buf_used = 0;
304 msg->hdr->length = htons(msg->buf_used);
305 hmac_md5(secret, secret_len, msg->buf, msg->buf_used,
308 msg->hdr->length = htons(msg->buf_used);
310 if (msg->buf_used > 0xffff) {
312 (unsigned long) msg->buf_used);
334 msg->hdr->length = htons(msg->buf_used);
337 hmac_md5(secret, secret_len, msg->buf, msg->buf_used,
346 len[2] = msg->buf_used - sizeof(*msg->hdr);
351 if (msg->buf_used > 0xffff) {
353 (unsigned long) msg->buf_used);
366 msg->hdr->length = htons(msg->buf_used);
369 len[0] = msg->buf_used;
374 if (msg->buf_used > 0xffff) {
376 (unsigned long) msg->buf_used);
414 buf_needed = msg->buf_used + sizeof(*attr) + data_len;
438 attr = (struct radius_attr_hdr *) (msg->buf + msg->buf_used);
444 msg->buf_used += sizeof(*attr) + data_len;
487 msg->buf_size = msg->buf_used = msg_len;
491 end = msg->buf + msg->buf_used;
613 hmac_md5(secret, secret_len, msg->buf, msg->buf_used, auth);
653 len[2] = msg->buf_used - sizeof(*msg->hdr);