Lines Matching refs:frag_len
163 unsigned long frag_len);
168 unsigned long frag_len);
173 dtls1_hm_fragment_new(unsigned long frag_len, int reassembly) in dtls1_hm_fragment_new() argument
183 if (frag_len) in dtls1_hm_fragment_new()
185 buf = (unsigned char *)OPENSSL_malloc(frag_len); in dtls1_hm_fragment_new()
199 bitmask = (unsigned char *)OPENSSL_malloc(RSMBLY_BITMASK_SIZE(frag_len)); in dtls1_hm_fragment_new()
206 memset(bitmask, 0, RSMBLY_BITMASK_SIZE(frag_len)); in dtls1_hm_fragment_new()
488 size_t frag_off,frag_len,msg_len; in dtls1_preprocess_fragment() local
492 frag_len = msg_hdr->frag_len; in dtls1_preprocess_fragment()
495 if ( (frag_off+frag_len) > msg_len) in dtls1_preprocess_fragment()
501 if ( (frag_off+frag_len) > (unsigned long)max) in dtls1_preprocess_fragment()
560 unsigned long frag_len = frag->msg_header.frag_len; in dtls1_retrieve_buffered_fragment() local
569 frag->fragment,frag->msg_header.frag_len); in dtls1_retrieve_buffered_fragment()
578 return frag_len; in dtls1_retrieve_buffered_fragment()
608 unsigned long frag_len = msg_hdr->frag_len; in dtls1_reassemble_fragment() local
610 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len || in dtls1_reassemble_fragment()
614 if (frag_len == 0) in dtls1_reassemble_fragment()
629 frag->msg_header.frag_len = frag->msg_header.msg_len; in dtls1_reassemble_fragment()
652 while (frag_len) in dtls1_reassemble_fragment()
656 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0); in dtls1_reassemble_fragment()
658 frag_len -= i; in dtls1_reassemble_fragment()
665 frag->fragment + msg_hdr->frag_off,frag_len,0); in dtls1_reassemble_fragment()
666 if ((unsigned long)i!=frag_len) in dtls1_reassemble_fragment()
672 (long)(msg_hdr->frag_off + frag_len)); in dtls1_reassemble_fragment()
716 unsigned long frag_len = msg_hdr->frag_len; in dtls1_process_out_of_seq_message() local
718 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len) in dtls1_process_out_of_seq_message()
730 if (item != NULL && frag_len != msg_hdr->msg_len) in dtls1_process_out_of_seq_message()
744 while (frag_len) in dtls1_process_out_of_seq_message()
748 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0); in dtls1_process_out_of_seq_message()
750 frag_len -= i; in dtls1_process_out_of_seq_message()
755 if (frag_len != msg_hdr->msg_len) in dtls1_process_out_of_seq_message()
758 if (frag_len > dtls1_max_handshake_message_len(s)) in dtls1_process_out_of_seq_message()
761 frag = dtls1_hm_fragment_new(frag_len, 0); in dtls1_process_out_of_seq_message()
767 if (frag_len) in dtls1_process_out_of_seq_message()
771 frag->fragment,frag_len,0); in dtls1_process_out_of_seq_message()
772 if ((unsigned long)i!=frag_len) in dtls1_process_out_of_seq_message()
806 unsigned long len, frag_off, frag_len; in dtls1_get_message_fragment() local
812 if ((frag_len = dtls1_retrieve_buffered_fragment(s,max,ok)) || *ok) in dtls1_get_message_fragment()
814 if (*ok) s->init_num = frag_len; in dtls1_get_message_fragment()
815 return frag_len; in dtls1_get_message_fragment()
849 frag_len = msg_hdr.frag_len; in dtls1_get_message_fragment()
851 if (frag_len && frag_len < len) in dtls1_get_message_fragment()
885 if ( frag_len > 0) in dtls1_get_message_fragment()
890 &p[frag_off],frag_len,0); in dtls1_get_message_fragment()
904 if (i != (int)frag_len) in dtls1_get_message_fragment()
917 s->init_num = frag_len; in dtls1_get_message_fragment()
918 return frag_len; in dtls1_get_message_fragment()
1217 frag->msg_header.frag_len = s->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
1295 frag->msg_header.frag_len); in dtls1_retransmit_message()
1359 unsigned long len, unsigned long frag_off, unsigned long frag_len) in dtls1_set_message_header() argument
1369 frag_off, frag_len); in dtls1_set_message_header()
1379 unsigned long frag_len) in dtls1_set_message_header_int() argument
1387 msg_hdr->frag_len = frag_len; in dtls1_set_message_header_int()
1392 unsigned long frag_len) in dtls1_fix_message_header() argument
1397 msg_hdr->frag_len = frag_len; in dtls1_fix_message_header()
1410 l2n3(msg_hdr->frag_len, p); in dtls1_write_message_header()
1446 n2l3(data, msg_hdr->frag_len); in dtls1_get_message_header()