Lines Matching refs:msglen
261 dtls_get_cookie(uint8 *msg, size_t msglen, uint8 **cookie) { in dtls_get_cookie() argument
264 if (msglen < DTLS_HS_LENGTH + DTLS_CH_LENGTH + sizeof(uint8)) in dtls_get_cookie()
270 msglen -= DTLS_HS_LENGTH + DTLS_CH_LENGTH; in dtls_get_cookie()
273 SKIP_VAR_FIELD(msg, msglen, uint8); /* skip session id */ in dtls_get_cookie()
275 if (msglen < (*msg & 0xff) + sizeof(uint8)) in dtls_get_cookie()
288 uint8 *msg, size_t msglen, in dtls_create_cookie() argument
319 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()
327 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()
361 is_record(uint8 *msg, size_t msglen) { in is_record() argument
364 if (msglen >= DTLS_RH_LENGTH /* FIXME allow empty records? */ in is_record()
375 if (rlen > msglen) in is_record()
3593 uint8 *msg, int msglen) { in dtls_handle_message() argument
3611 while ((rlen = is_record(msg,msglen))) { in dtls_handle_message()
3733 msglen -= rlen; in dtls_handle_message()