Lines Matching defs:frag_len
163 unsigned long frag_len);
168 unsigned long frag_len);
173 dtls1_hm_fragment_new(unsigned long frag_len, int reassembly)
183 if (frag_len)
185 buf = (unsigned char *)OPENSSL_malloc(frag_len);
199 bitmask = (unsigned char *)OPENSSL_malloc(RSMBLY_BITMASK_SIZE(frag_len));
206 memset(bitmask, 0, RSMBLY_BITMASK_SIZE(frag_len));
481 size_t frag_off,frag_len,msg_len;
485 frag_len = msg_hdr->frag_len;
488 if ( (frag_off+frag_len) > msg_len)
494 if ( (frag_off+frag_len) > (unsigned long)max)
553 unsigned long frag_len = frag->msg_header.frag_len;
562 frag->fragment,frag->msg_header.frag_len);
571 return frag_len;
591 unsigned long frag_len = msg_hdr->frag_len, max_len;
593 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
604 if ((msg_hdr->frag_off+frag_len) > max_len)
619 frag->msg_header.frag_len = frag->msg_header.msg_len;
632 while (frag_len)
636 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0);
638 frag_len -= i;
645 frag->fragment + msg_hdr->frag_off,frag_len,0);
646 if (i<=0 || (unsigned long)i!=frag_len)
650 (long)(msg_hdr->frag_off + frag_len));
694 unsigned long frag_len = msg_hdr->frag_len;
696 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
708 if (item != NULL && frag_len < msg_hdr->msg_len)
722 while (frag_len)
726 frag_len>sizeof(devnull)?sizeof(devnull):frag_len,0);
728 frag_len -= i;
733 if (frag_len && frag_len < msg_hdr->msg_len)
736 frag = dtls1_hm_fragment_new(frag_len, 0);
742 if (frag_len)
746 frag->fragment,frag_len,0);
747 if (i<=0 || (unsigned long)i!=frag_len)
776 unsigned long len, frag_off, frag_len;
781 if ((frag_len = dtls1_retrieve_buffered_fragment(s,max,ok)) || *ok)
783 if (*ok) s->init_num = frag_len;
784 return frag_len;
818 frag_len = msg_hdr.frag_len;
820 if (frag_len && frag_len < len)
855 if ( frag_len > 0)
860 &p[frag_off],frag_len,0);
874 if (i != (int)frag_len)
887 s->init_num = frag_len;
888 return frag_len;
1185 frag->msg_header.frag_len = s->d1->w_msg_hdr.msg_len;
1263 frag->msg_header.frag_len);
1327 unsigned long len, unsigned long frag_off, unsigned long frag_len)
1337 frag_off, frag_len);
1347 unsigned long frag_len)
1355 msg_hdr->frag_len = frag_len;
1360 unsigned long frag_len)
1365 msg_hdr->frag_len = frag_len;
1378 l2n3(msg_hdr->frag_len, p);
1414 n2l3(data, msg_hdr->frag_len);