Lines Matching refs:msg_header

502         if (frag->msg_header.seq < s->d1->handshake_read_seq) {  in dtls1_retrieve_buffered_fragment()
507 || frag->msg_header.seq != 0 in dtls1_retrieve_buffered_fragment()
530 if (nextfrag->msg_header.seq == s->d1->handshake_read_seq) { in dtls1_retrieve_buffered_fragment()
554 if (s->d1->handshake_read_seq == frag->msg_header.seq || chretran) { in dtls1_retrieve_buffered_fragment()
555 size_t frag_len = frag->msg_header.frag_len; in dtls1_retrieve_buffered_fragment()
559 ret = dtls1_preprocess_fragment(s, &frag->msg_header); in dtls1_retrieve_buffered_fragment()
561 if (ret && frag->msg_header.frag_len > 0) { in dtls1_retrieve_buffered_fragment()
564 memcpy(&p[frag->msg_header.frag_off], frag->fragment, in dtls1_retrieve_buffered_fragment()
565 frag->msg_header.frag_len); in dtls1_retrieve_buffered_fragment()
623 memcpy(&(frag->msg_header), msg_hdr, sizeof(*msg_hdr)); in dtls1_reassemble_fragment()
624 frag->msg_header.frag_len = frag->msg_header.msg_len; in dtls1_reassemble_fragment()
625 frag->msg_header.frag_off = 0; in dtls1_reassemble_fragment()
628 if (frag->msg_header.msg_len != msg_hdr->msg_len) { in dtls1_reassemble_fragment()
763 memcpy(&(frag->msg_header), msg_hdr, sizeof(*msg_hdr)); in dtls1_process_out_of_seq_message()
1105 (frag->msg_header.seq, in dtls1_retransmit_buffered_messages()
1106 frag->msg_header.is_ccs), &found) <= 0) in dtls1_retransmit_buffered_messages()
1149 frag->msg_header.msg_len = s->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
1150 frag->msg_header.seq = s->d1->w_msg_hdr.seq; in dtls1_buffer_message()
1151 frag->msg_header.type = s->d1->w_msg_hdr.type; in dtls1_buffer_message()
1152 frag->msg_header.frag_off = 0; in dtls1_buffer_message()
1153 frag->msg_header.frag_len = s->d1->w_msg_hdr.msg_len; in dtls1_buffer_message()
1154 frag->msg_header.is_ccs = is_ccs; in dtls1_buffer_message()
1157 frag->msg_header.saved_retransmit_state.wrlmethod = s->rlayer.wrlmethod; in dtls1_buffer_message()
1158 frag->msg_header.saved_retransmit_state.wrl = s->rlayer.wrl; in dtls1_buffer_message()
1164 char)(dtls1_get_queue_priority(frag->msg_header.seq, in dtls1_buffer_message()
1165 frag->msg_header.is_ccs) >> 8); in dtls1_buffer_message()
1168 char)(dtls1_get_queue_priority(frag->msg_header.seq, in dtls1_buffer_message()
1169 frag->msg_header.is_ccs)); in dtls1_buffer_message()
1206 if (frag->msg_header.is_ccs) in dtls1_retransmit_message()
1212 frag->msg_header.msg_len + header_length); in dtls1_retransmit_message()
1213 s->init_num = frag->msg_header.msg_len + header_length; in dtls1_retransmit_message()
1215 dtls1_set_message_header_int(s, frag->msg_header.type, in dtls1_retransmit_message()
1216 frag->msg_header.msg_len, in dtls1_retransmit_message()
1217 frag->msg_header.seq, 0, in dtls1_retransmit_message()
1218 frag->msg_header.frag_len); in dtls1_retransmit_message()
1227 s->rlayer.wrlmethod = frag->msg_header.saved_retransmit_state.wrlmethod; in dtls1_retransmit_message()
1228 s->rlayer.wrl = frag->msg_header.saved_retransmit_state.wrl; in dtls1_retransmit_message()
1236 ret = dtls1_do_write(s, frag->msg_header.is_ccs ? in dtls1_retransmit_message()