Searched refs:SCTP_BUF_LEN (Results 1 – 8 of 8) sorted by relevance
| /f-stack/freebsd/netinet/ |
| H A D | sctp_var.h | 201 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 204 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 209 atomic_subtract_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 213 atomic_add_int(&(sb)->sb_cc,SCTP_BUF_LEN((m))); \ 216 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 221 atomic_add_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 239 while (_m && (SCTP_BUF_LEN(_m) == 0)) { \
|
| H A D | sctputil.c | 2886 tlen += SCTP_BUF_LEN(at); in sctp_calculate_len() 3059 if (off < SCTP_BUF_LEN(m)) in sctp_m_getptr() 3061 off -= SCTP_BUF_LEN(m); in sctp_m_getptr() 3119 SCTP_BUF_LEN(m_last) = 0; in sctp_add_pad_tombuf() 3298 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_peer_addr_change() 3614 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_adaptation_layer() 3667 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_partial_delivery_indication() 3785 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_sender_dry_event() 3835 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset_add() 4944 SCTP_BUF_LEN(m) = len; in sctp_generate_cause() [all …]
|
| H A D | sctp_auth.c | 1024 m_offset -= SCTP_BUF_LEN(m_tmp); in sctp_hmac_m() 1031 SCTP_BUF_LEN(m_tmp) - (trailer + m_offset)); in sctp_hmac_m() 1034 SCTP_BUF_LEN(m_tmp) - m_offset); in sctp_hmac_m() 1564 m_offset -= SCTP_BUF_LEN(m_tmp); in sctp_zero_m() 1570 if (size > (uint32_t)(SCTP_BUF_LEN(m_tmp) - m_offset)) { in sctp_zero_m() 1571 memset(data, 0, SCTP_BUF_LEN(m_tmp) - m_offset); in sctp_zero_m() 1572 size -= SCTP_BUF_LEN(m_tmp) - m_offset; in sctp_zero_m() 1639 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_error_auth_invalid_hmac); in sctp_handle_auth() 1736 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_authentication() 1747 SCTP_BUF_LEN(m_notify) = sizeof(*auth); in sctp_notify_authentication() [all …]
|
| H A D | sctp_output.c | 1994 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 2012 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 4047 SCTP_BUF_LEN(newm) = len; in sctp_lowlevel_chunk_output() 4307 SCTP_BUF_LEN(newm) = len; in sctp_lowlevel_chunk_output() 4863 SCTP_BUF_LEN(m) = chunk_len; in sctp_send_initiate() 5215 SCTP_BUF_LEN(op_err) = 0; in sctp_arethere_unrecognized_parameters() 6016 SCTP_BUF_LEN(m) = chunk_len; in sctp_send_initiate_ack() 6791 SCTP_BUF_LEN(ret) = 0; in sctp_copy_out_all() 6813 SCTP_BUF_LEN(at) = 0; in sctp_copy_out_all() 7469 SCTP_BUF_LEN(m) = 0; in sctp_move_to_outqueue() [all …]
|
| H A D | sctp_asconf.c | 94 SCTP_BUF_LEN(m_reply) = aph->ph.param_length; in sctp_asconf_success_response() 147 SCTP_BUF_LEN(m_reply) = buf_len; in sctp_asconf_error_response() 686 SCTP_BUF_LEN(m_ack) = sizeof(struct sctp_asconf_ack_chunk); in sctp_handle_asconf() 785 ack_cp->ch.chunk_length += SCTP_BUF_LEN(m_result); in sctp_handle_asconf() 820 ack->len += SCTP_BUF_LEN(n); in sctp_handle_asconf() 2596 SCTP_BUF_LEN(m_asconf) = 0; in sctp_compose_asconf() 2617 (SCTP_BUF_LEN(m_asconf) + p_length > MCLBYTES)) { in sctp_compose_asconf() 2651 SCTP_BUF_LEN(m_asconf_chk) += SCTP_SIZE32(p_size); in sctp_compose_asconf() 2666 SCTP_BUF_LEN(m_asconf) += SCTP_SIZE32(p_length); in sctp_compose_asconf() 2725 SCTP_BUF_LEN(m_asconf_chk) += SCTP_SIZE32(p_size); in sctp_compose_asconf() [all …]
|
| H A D | sctp_indata.c | 220 SCTP_BUF_LEN(ret) = 0; in sctp_build_ctl_nchunk() 643 if (SCTP_BUF_LEN(m) == 0) { in sctp_setup_tail_pointer() 659 atomic_add_int(&control->length, SCTP_BUF_LEN(m)); in sctp_setup_tail_pointer() 697 if (SCTP_BUF_LEN(m) == 0) { in sctp_add_to_tail_pointer() 720 *added += SCTP_BUF_LEN(m); in sctp_add_to_tail_pointer() 721 atomic_add_int(&control->length, SCTP_BUF_LEN(m)); in sctp_add_to_tail_pointer() 2056 l_len = SCTP_BUF_LEN(dmbuf); in sctp_process_a_data_chunk() 2066 l_len += SCTP_BUF_LEN(lat); in sctp_process_a_data_chunk() 2100 control->length += SCTP_BUF_LEN(mm); in sctp_process_a_data_chunk() 2699 memcpy(to, from, SCTP_BUF_LEN((*mm))); in sctp_process_data() [all …]
|
| H A D | sctp_os_bsd.h | 290 #define SCTP_BUF_LEN(m) (m->m_len) macro
|
| H A D | sctp_input.c | 471 SCTP_BUF_LEN(op_err) = len; in sctp_process_init_ack() 2478 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_error_stale_cookie); in sctp_handle_cookie_echo() 3147 if ((uint32_t)SCTP_BUF_LEN(tp1->data) < in process_chunk_drop() 4053 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); in sctp_handle_stream_reset() 5270 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_gen_error_cause); in sctp_process_control() 5744 if (SCTP_BUF_LEN(m) < offset) { in sctp_input_with_port() 5830 if (SCTP_BUF_LEN(m) < offset) { in sctp_input()
|