Lines Matching defs:frag_off
162 static void dtls1_fix_message_header(SSL *s, unsigned long frag_off,
167 unsigned long len, unsigned short seq_num, unsigned long frag_off,
227 unsigned int len, frag_off, mac_size, blocksize;
285 frag_off = 0;
321 dtls1_fix_message_header(s, frag_off,
361 if (frag_off == 0 && s->version != DTLS1_BAD_VER)
396 frag_off += (ret -= DTLS1_HM_HEADER_LENGTH);
481 size_t frag_off,frag_len,msg_len;
484 frag_off = msg_hdr->frag_off;
488 if ( (frag_off+frag_len) > msg_len)
494 if ( (frag_off+frag_len) > (unsigned long)max)
500 if ( s->d1->r_msg_hdr.frag_off == 0) /* first fragment */
561 memcpy(&p[frag->msg_header.frag_off],
593 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
604 if ((msg_hdr->frag_off+frag_len) > max_len)
620 frag->msg_header.frag_off = 0;
645 frag->fragment + msg_hdr->frag_off,frag_len,0);
649 RSMBLY_BITMASK_MARK(frag->reassembly, (long)msg_hdr->frag_off,
650 (long)(msg_hdr->frag_off + frag_len));
696 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
776 unsigned long len, frag_off, frag_len;
817 frag_off = msg_hdr.frag_off;
823 if (!s->server && s->d1->r_msg_hdr.frag_off == 0 &&
860 &p[frag_off],frag_len,0);
1184 frag->msg_header.frag_off = 0;
1219 dtls1_retransmit_message(SSL *s, unsigned short seq, unsigned long frag_off,
1327 unsigned long len, unsigned long frag_off, unsigned long frag_len)
1330 if (frag_off == 0 && !s->d1->listen)
1337 frag_off, frag_len);
1346 unsigned long len, unsigned short seq_num, unsigned long frag_off,
1354 msg_hdr->frag_off = frag_off;
1359 dtls1_fix_message_header(SSL *s, unsigned long frag_off,
1364 msg_hdr->frag_off = frag_off;
1377 l2n3(msg_hdr->frag_off, p);
1413 n2l3(data, msg_hdr->frag_off);