Lines Matching full:asoc
78 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; in sctp_sblog()
102 sctp_clog.x.close.state = (uint16_t)stcb->asoc.state; in sctp_log_closing()
166 sctp_clog.x.nagle.total_flight = stcb->asoc.total_flight; in sctp_log_nagle_event()
167 sctp_clog.x.nagle.total_in_queue = stcb->asoc.total_output_queue_size; in sctp_log_nagle_event()
168 sctp_clog.x.nagle.count_in_queue = stcb->asoc.chunks_on_out_queue; in sctp_log_nagle_event()
169 sctp_clog.x.nagle.count_in_flight = stcb->asoc.total_flight_count; in sctp_log_nagle_event()
318 if (stcb->asoc.send_queue_cnt > 255) in sctp_log_cwnd()
321 sctp_clog.x.cwnd.cnt_in_send = stcb->asoc.send_queue_cnt; in sctp_log_cwnd()
322 if (stcb->asoc.stream_queue_cnt > 255) in sctp_log_cwnd()
325 sctp_clog.x.cwnd.cnt_in_str = stcb->asoc.stream_queue_cnt; in sctp_log_cwnd()
335 sctp_clog.x.cwnd.meets_pseudo_cumack = stcb->asoc.peers_rwnd; in sctp_log_cwnd()
405 if (stcb->asoc.send_queue_cnt > 255) in sctp_log_maxburst()
408 sctp_clog.x.cwnd.cnt_in_send = stcb->asoc.send_queue_cnt; in sctp_log_maxburst()
409 if (stcb->asoc.stream_queue_cnt > 255) in sctp_log_maxburst()
412 sctp_clog.x.cwnd.cnt_in_str = stcb->asoc.stream_queue_cnt; in sctp_log_maxburst()
504 sctp_clog.x.wake.flight = stcb->asoc.total_flight_count; in sctp_wakeup_log()
505 sctp_clog.x.wake.send_q = stcb->asoc.send_queue_cnt; in sctp_wakeup_log()
506 sctp_clog.x.wake.sent_q = stcb->asoc.sent_queue_cnt; in sctp_wakeup_log()
508 if (stcb->asoc.stream_queue_cnt < 0xff) in sctp_wakeup_log()
509 sctp_clog.x.wake.stream_qcnt = (uint8_t)stcb->asoc.stream_queue_cnt; in sctp_wakeup_log()
513 if (stcb->asoc.chunks_on_out_queue < 0xff) in sctp_wakeup_log()
514 sctp_clog.x.wake.chunks_on_oque = (uint8_t)stcb->asoc.chunks_on_out_queue; in sctp_wakeup_log()
545 sctp_log_block(uint8_t from, struct sctp_association *asoc, ssize_t sendlen) in sctp_log_block() argument
550 sctp_clog.x.blk.onsb = asoc->total_output_queue_size; in sctp_log_block()
551 sctp_clog.x.blk.send_sent_qcnt = (uint16_t)(asoc->send_queue_cnt + asoc->sent_queue_cnt); in sctp_log_block()
552 sctp_clog.x.blk.peer_rwnd = asoc->peers_rwnd; in sctp_log_block()
553 sctp_clog.x.blk.stream_qcnt = (uint16_t)asoc->stream_queue_cnt; in sctp_log_block()
554 sctp_clog.x.blk.chunks_on_oque = (uint16_t)asoc->chunks_on_out_queue; in sctp_log_block()
555 sctp_clog.x.blk.flight_size = (uint16_t)(asoc->total_flight / 1024); in sctp_log_block()
661 (0x000000ff & stcb->asoc.sent_queue_retran_cnt); in sctp_auditing()
669 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { in sctp_auditing()
677 if (resend_cnt != stcb->asoc.sent_queue_retran_cnt) { in sctp_auditing()
684 SCTP_PRINTF("resend_cnt:%d asoc-tot:%d\n", in sctp_auditing()
685 resend_cnt, stcb->asoc.sent_queue_retran_cnt); in sctp_auditing()
687 stcb->asoc.sent_queue_retran_cnt = resend_cnt; in sctp_auditing()
690 (0x000000ff & stcb->asoc.sent_queue_retran_cnt); in sctp_auditing()
696 if (tot_out != stcb->asoc.total_flight) { in sctp_auditing()
705 (int)stcb->asoc.total_flight); in sctp_auditing()
706 stcb->asoc.total_flight = tot_out; in sctp_auditing()
708 if (tot_book_cnt != stcb->asoc.total_flight_count) { in sctp_auditing()
718 stcb->asoc.total_flight_count = tot_book_cnt; in sctp_auditing()
721 TAILQ_FOREACH(lnet, &stcb->asoc.nets, sctp_next) { in sctp_auditing()
724 if (tot_out != stcb->asoc.total_flight) { in sctp_auditing()
733 stcb->asoc.total_flight, tot_out); in sctp_auditing()
735 TAILQ_FOREACH(lnet, &stcb->asoc.nets, sctp_next) { in sctp_auditing()
737 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { in sctp_auditing()
865 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { in sctp_stop_timers_for_shutdown()
897 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { in sctp_stop_association_timers()
1115 struct sctp_association *asoc; in sctp_init_asoc() local
1133 asoc = &stcb->asoc; in sctp_init_asoc()
1136 asoc->max_burst = inp->sctp_ep.max_burst; in sctp_init_asoc()
1137 asoc->fr_max_burst = inp->sctp_ep.fr_max_burst; in sctp_init_asoc()
1138 asoc->heart_beat_delay = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_HEARTBEAT]); in sctp_init_asoc()
1139 asoc->cookie_life = inp->sctp_ep.def_cookie_life; in sctp_init_asoc()
1140 asoc->sctp_cmt_on_off = inp->sctp_cmt_on_off; in sctp_init_asoc()
1141 asoc->ecn_supported = inp->ecn_supported; in sctp_init_asoc()
1142 asoc->prsctp_supported = inp->prsctp_supported; in sctp_init_asoc()
1143 asoc->auth_supported = inp->auth_supported; in sctp_init_asoc()
1144 asoc->asconf_supported = inp->asconf_supported; in sctp_init_asoc()
1145 asoc->reconfig_supported = inp->reconfig_supported; in sctp_init_asoc()
1146 asoc->nrsack_supported = inp->nrsack_supported; in sctp_init_asoc()
1147 asoc->pktdrop_supported = inp->pktdrop_supported; in sctp_init_asoc()
1148 asoc->idata_supported = inp->idata_supported; in sctp_init_asoc()
1149 asoc->rcv_edmid = inp->rcv_edmid; in sctp_init_asoc()
1150 asoc->snd_edmid = SCTP_EDMID_NONE; in sctp_init_asoc()
1151 asoc->sctp_cmt_pf = (uint8_t)0; in sctp_init_asoc()
1152 asoc->sctp_frag_point = inp->sctp_frag_point; in sctp_init_asoc()
1153 asoc->sctp_features = inp->sctp_features; in sctp_init_asoc()
1154 asoc->default_dscp = inp->sctp_ep.default_dscp; in sctp_init_asoc()
1155 asoc->max_cwnd = inp->max_cwnd; in sctp_init_asoc()
1158 asoc->default_flowlabel = inp->sctp_ep.default_flowlabel; in sctp_init_asoc()
1161 asoc->default_flowlabel = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1162 asoc->default_flowlabel &= 0x000fffff; in sctp_init_asoc()
1163 asoc->default_flowlabel |= 0x80000000; in sctp_init_asoc()
1165 asoc->default_flowlabel = 0; in sctp_init_asoc()
1169 asoc->sb_send_resv = 0; in sctp_init_asoc()
1171 asoc->my_vtag = override_tag; in sctp_init_asoc()
1173 asoc->my_vtag = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 1); in sctp_init_asoc()
1176 asoc->my_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1177 asoc->peer_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1178 asoc->vrf_id = vrf_id; in sctp_init_asoc()
1181 asoc->tsn_in_at = 0; in sctp_init_asoc()
1182 asoc->tsn_out_at = 0; in sctp_init_asoc()
1183 asoc->tsn_in_wrapped = 0; in sctp_init_asoc()
1184 asoc->tsn_out_wrapped = 0; in sctp_init_asoc()
1185 asoc->cumack_log_at = 0; in sctp_init_asoc()
1186 asoc->cumack_log_atsnt = 0; in sctp_init_asoc()
1189 asoc->fs_index = 0; in sctp_init_asoc()
1191 asoc->refcnt = 0; in sctp_init_asoc()
1192 asoc->assoc_up_sent = 0; in sctp_init_asoc()
1194 asoc->init_seq_number = initial_tsn; in sctp_init_asoc()
1196 asoc->init_seq_number = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1198 asoc->asconf_seq_out = asoc->init_seq_number; in sctp_init_asoc()
1199 asoc->str_reset_seq_out = asoc->init_seq_number; in sctp_init_asoc()
1200 asoc->sending_seq = asoc->init_seq_number; in sctp_init_asoc()
1201 asoc->asconf_seq_out_acked = asoc->init_seq_number - 1; in sctp_init_asoc()
1203 asoc->peer_supports_nat = 0; in sctp_init_asoc()
1204 asoc->sent_queue_retran_cnt = 0; in sctp_init_asoc()
1207 asoc->last_net_cmt_send_started = NULL; in sctp_init_asoc()
1209 asoc->last_acked_seq = asoc->init_seq_number - 1; in sctp_init_asoc()
1210 asoc->advanced_peer_ack_point = asoc->init_seq_number - 1; in sctp_init_asoc()
1211 asoc->asconf_seq_in = asoc->init_seq_number - 1; in sctp_init_asoc()
1214 asoc->str_reset_seq_in = asoc->init_seq_number; in sctp_init_asoc()
1216 asoc->initial_init_rto_max = inp->sctp_ep.initial_init_rto_max; in sctp_init_asoc()
1217 asoc->initial_rto = inp->sctp_ep.initial_rto; in sctp_init_asoc()
1219 asoc->default_mtu = inp->sctp_ep.default_mtu; in sctp_init_asoc()
1220 asoc->max_init_times = inp->sctp_ep.max_init_times; in sctp_init_asoc()
1221 asoc->max_send_times = inp->sctp_ep.max_send_times; in sctp_init_asoc()
1222 asoc->def_net_failure = inp->sctp_ep.def_net_failure; in sctp_init_asoc()
1223 asoc->def_net_pf_threshold = inp->sctp_ep.def_net_pf_threshold; in sctp_init_asoc()
1224 asoc->free_chunk_cnt = 0; in sctp_init_asoc()
1226 asoc->iam_blocking = 0; in sctp_init_asoc()
1227 asoc->context = inp->sctp_context; in sctp_init_asoc()
1228 asoc->local_strreset_support = inp->local_strreset_support; in sctp_init_asoc()
1229 asoc->def_send = inp->def_send; in sctp_init_asoc()
1230 asoc->delayed_ack = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_RECV]); in sctp_init_asoc()
1231 asoc->sack_freq = inp->sctp_ep.sctp_sack_freq; in sctp_init_asoc()
1232 asoc->pr_sctp_cnt = 0; in sctp_init_asoc()
1233 asoc->total_output_queue_size = 0; in sctp_init_asoc()
1236 asoc->scope.ipv6_addr_legal = 1; in sctp_init_asoc()
1238 asoc->scope.ipv4_addr_legal = 1; in sctp_init_asoc()
1240 asoc->scope.ipv4_addr_legal = 0; in sctp_init_asoc()
1243 asoc->scope.ipv6_addr_legal = 0; in sctp_init_asoc()
1244 asoc->scope.ipv4_addr_legal = 1; in sctp_init_asoc()
1247 asoc->my_rwnd = max(SCTP_SB_LIMIT_RCV(inp->sctp_socket), SCTP_MINIMAL_RWND); in sctp_init_asoc()
1248 asoc->peers_rwnd = SCTP_SB_LIMIT_RCV(inp->sctp_socket); in sctp_init_asoc()
1250 asoc->smallest_mtu = 0; in sctp_init_asoc()
1251 asoc->minrto = inp->sctp_ep.sctp_minrto; in sctp_init_asoc()
1252 asoc->maxrto = inp->sctp_ep.sctp_maxrto; in sctp_init_asoc()
1254 asoc->stream_locked_on = 0; in sctp_init_asoc()
1255 asoc->ecn_echo_cnt_onq = 0; in sctp_init_asoc()
1256 asoc->stream_locked = 0; in sctp_init_asoc()
1258 asoc->send_sack = 1; in sctp_init_asoc()
1260 LIST_INIT(&asoc->sctp_restricted_addrs); in sctp_init_asoc()
1262 TAILQ_INIT(&asoc->nets); in sctp_init_asoc()
1263 TAILQ_INIT(&asoc->pending_reply_queue); in sctp_init_asoc()
1264 TAILQ_INIT(&asoc->asconf_ack_sent); in sctp_init_asoc()
1266 asoc->hb_random_idx = 4; in sctp_init_asoc()
1268 asoc->sctp_autoclose_ticks = inp->sctp_ep.auto_close_time; in sctp_init_asoc()
1270 stcb->asoc.congestion_control_module = inp->sctp_ep.sctp_default_cc_module; in sctp_init_asoc()
1271 stcb->asoc.cc_functions = sctp_cc_functions[inp->sctp_ep.sctp_default_cc_module]; in sctp_init_asoc()
1273 stcb->asoc.stream_scheduling_module = inp->sctp_ep.sctp_default_ss_module; in sctp_init_asoc()
1274 stcb->asoc.ss_functions = sctp_ss_functions[inp->sctp_ep.sctp_default_ss_module]; in sctp_init_asoc()
1280 asoc->strm_realoutsize = asoc->streamoutcnt = asoc->pre_open_streams = in sctp_init_asoc()
1282 SCTP_MALLOC(asoc->strmout, struct sctp_stream_out *, in sctp_init_asoc()
1283 asoc->streamoutcnt * sizeof(struct sctp_stream_out), in sctp_init_asoc()
1285 if (asoc->strmout == NULL) { in sctp_init_asoc()
1291 for (i = 0; i < asoc->streamoutcnt; i++) { in sctp_init_asoc()
1300 TAILQ_INIT(&asoc->strmout[i].outqueue); in sctp_init_asoc()
1301 asoc->ss_functions.sctp_ss_init_stream(stcb, &asoc->strmout[i], NULL); in sctp_init_asoc()
1302 asoc->strmout[i].chunks_on_queues = 0; in sctp_init_asoc()
1305 asoc->strmout[i].abandoned_sent[j] = 0; in sctp_init_asoc()
1306 asoc->strmout[i].abandoned_unsent[j] = 0; in sctp_init_asoc()
1309 asoc->strmout[i].abandoned_sent[0] = 0; in sctp_init_asoc()
1310 asoc->strmout[i].abandoned_unsent[0] = 0; in sctp_init_asoc()
1312 asoc->strmout[i].next_mid_ordered = 0; in sctp_init_asoc()
1313 asoc->strmout[i].next_mid_unordered = 0; in sctp_init_asoc()
1314 asoc->strmout[i].sid = i; in sctp_init_asoc()
1315 asoc->strmout[i].last_msg_incomplete = 0; in sctp_init_asoc()
1316 asoc->strmout[i].state = SCTP_STREAM_OPENING; in sctp_init_asoc()
1318 asoc->ss_functions.sctp_ss_init(stcb, asoc); in sctp_init_asoc()
1322 asoc->mapping_array_size = SCTP_INITIAL_MAPPING_ARRAY; in sctp_init_asoc()
1323 SCTP_MALLOC(asoc->mapping_array, uint8_t *, asoc->mapping_array_size, in sctp_init_asoc()
1325 if (asoc->mapping_array == NULL) { in sctp_init_asoc()
1326 SCTP_FREE(asoc->strmout, SCTP_M_STRMO); in sctp_init_asoc()
1330 memset(asoc->mapping_array, 0, asoc->mapping_array_size); in sctp_init_asoc()
1331 SCTP_MALLOC(asoc->nr_mapping_array, uint8_t *, asoc->mapping_array_size, in sctp_init_asoc()
1333 if (asoc->nr_mapping_array == NULL) { in sctp_init_asoc()
1334 SCTP_FREE(asoc->strmout, SCTP_M_STRMO); in sctp_init_asoc()
1335 SCTP_FREE(asoc->mapping_array, SCTP_M_MAP); in sctp_init_asoc()
1339 memset(asoc->nr_mapping_array, 0, asoc->mapping_array_size); in sctp_init_asoc()
1342 TAILQ_INIT(&asoc->free_chunks); in sctp_init_asoc()
1343 TAILQ_INIT(&asoc->control_send_queue); in sctp_init_asoc()
1344 TAILQ_INIT(&asoc->asconf_send_queue); in sctp_init_asoc()
1345 TAILQ_INIT(&asoc->send_queue); in sctp_init_asoc()
1346 TAILQ_INIT(&asoc->sent_queue); in sctp_init_asoc()
1347 TAILQ_INIT(&asoc->resetHead); in sctp_init_asoc()
1348 asoc->max_inbound_streams = inp->sctp_ep.max_open_streams_intome; in sctp_init_asoc()
1349 TAILQ_INIT(&asoc->asconf_queue); in sctp_init_asoc()
1351 asoc->authinfo.random = NULL; in sctp_init_asoc()
1352 asoc->authinfo.active_keyid = 0; in sctp_init_asoc()
1353 asoc->authinfo.assoc_key = NULL; in sctp_init_asoc()
1354 asoc->authinfo.assoc_keyid = 0; in sctp_init_asoc()
1355 asoc->authinfo.recv_key = NULL; in sctp_init_asoc()
1356 asoc->authinfo.recv_keyid = 0; in sctp_init_asoc()
1357 LIST_INIT(&asoc->shared_keys); in sctp_init_asoc()
1358 asoc->marked_retrans = 0; in sctp_init_asoc()
1359 asoc->port = inp->sctp_ep.port; in sctp_init_asoc()
1360 asoc->timoinit = 0; in sctp_init_asoc()
1361 asoc->timodata = 0; in sctp_init_asoc()
1362 asoc->timosack = 0; in sctp_init_asoc()
1363 asoc->timoshutdown = 0; in sctp_init_asoc()
1364 asoc->timoheartbeat = 0; in sctp_init_asoc()
1365 asoc->timocookie = 0; in sctp_init_asoc()
1366 asoc->timoshutdownack = 0; in sctp_init_asoc()
1367 (void)SCTP_GETTIME_TIMEVAL(&asoc->start_time); in sctp_init_asoc()
1368 asoc->discontinuity_time = asoc->start_time; in sctp_init_asoc()
1370 asoc->abandoned_unsent[i] = 0; in sctp_init_asoc()
1371 asoc->abandoned_sent[i] = 0; in sctp_init_asoc()
1381 sctp_print_mapping_array(struct sctp_association *asoc) in sctp_print_mapping_array() argument
1386 asoc->mapping_array_size, in sctp_print_mapping_array()
1387 asoc->mapping_array_base_tsn, in sctp_print_mapping_array()
1388 asoc->cumulative_tsn, in sctp_print_mapping_array()
1389 asoc->highest_tsn_inside_map, in sctp_print_mapping_array()
1390 asoc->highest_tsn_inside_nr_map); in sctp_print_mapping_array()
1391 for (limit = asoc->mapping_array_size; limit > 1; limit--) { in sctp_print_mapping_array()
1392 if (asoc->mapping_array[limit - 1] != 0) { in sctp_print_mapping_array()
1396 …SCTP_PRINTF("Renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size - li… in sctp_print_mapping_array()
1398 SCTP_PRINTF("%2.2x%c", asoc->mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); in sctp_print_mapping_array()
1402 for (limit = asoc->mapping_array_size; limit > 1; limit--) { in sctp_print_mapping_array()
1403 if (asoc->nr_mapping_array[limit - 1]) { in sctp_print_mapping_array()
1407 …SCTP_PRINTF("Non renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size … in sctp_print_mapping_array()
1409 SCTP_PRINTF("%2.2x%c", asoc->nr_mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); in sctp_print_mapping_array()
1416 sctp_expand_mapping_array(struct sctp_association *asoc, uint32_t needed) in sctp_expand_mapping_array() argument
1422 new_size = asoc->mapping_array_size + ((needed + 7) / 8 + SCTP_MAPPING_ARRAY_INCR); in sctp_expand_mapping_array()
1438 memcpy(new_array1, asoc->mapping_array, asoc->mapping_array_size); in sctp_expand_mapping_array()
1439 memcpy(new_array2, asoc->nr_mapping_array, asoc->mapping_array_size); in sctp_expand_mapping_array()
1440 SCTP_FREE(asoc->mapping_array, SCTP_M_MAP); in sctp_expand_mapping_array()
1441 SCTP_FREE(asoc->nr_mapping_array, SCTP_M_MAP); in sctp_expand_mapping_array()
1442 asoc->mapping_array = new_array1; in sctp_expand_mapping_array()
1443 asoc->nr_mapping_array = new_array2; in sctp_expand_mapping_array()
1444 asoc->mapping_array_size = new_size; in sctp_expand_mapping_array()
1523 if (it->asoc_state && ((it->stcb->asoc.state & it->asoc_state) != it->asoc_state)) { in sctp_iterator_work()
1532 atomic_add_int(&it->stcb->asoc.refcnt, 1); in sctp_iterator_work()
1543 atomic_subtract_int(&it->stcb->asoc.refcnt, 1); in sctp_iterator_work()
1562 atomic_subtract_int(&it->stcb->asoc.refcnt, 1); in sctp_iterator_work()
1700 *|SCTP_TIMER_TYPE_RECV |stcb->asoc.dack_timer |Yes |Yes |No |
1707 *|SCTP_TIMER_TYPE_ASCONF |stcb->asoc.asconf_timer |Yes |Yes |Yes |
1708 *|SCTP_TIMER_TYPE_SHUTDOWNGUARD|stcb->asoc.shut_guard_timer |Yes |Yes |No |
1709 *|SCTP_TIMER_TYPE_AUTOCLOSE |stcb->asoc.autoclose_timer |Yes |Yes |No |
1710 *|SCTP_TIMER_TYPE_STRRESET |stcb->asoc.strreset_timer |Yes |Yes |No |
1712 *|SCTP_TIMER_TYPE_ASOCKILL |stcb->asoc.strreset_timer |Yes |Yes |No |
1714 *|SCTP_TIMER_TYPE_PRIM_DELETED |stcb->asoc.delete_prim_timer |Yes |Yes |No |
1759 if ((stcb != NULL) && (stcb->asoc.state == SCTP_STATE_EMPTY)) { in sctp_timeout_handler()
1782 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_timeout_handler()
1785 ((stcb->asoc.state == SCTP_STATE_EMPTY) || in sctp_timeout_handler()
1786 (stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED))) { in sctp_timeout_handler()
1822 stcb->asoc.timodata++; in sctp_timeout_handler()
1823 stcb->asoc.num_send_timers_up--; in sctp_timeout_handler()
1824 if (stcb->asoc.num_send_timers_up < 0) { in sctp_timeout_handler()
1825 stcb->asoc.num_send_timers_up = 0; in sctp_timeout_handler()
1839 if ((stcb->asoc.num_send_timers_up == 0) && in sctp_timeout_handler()
1840 (stcb->asoc.sent_queue_cnt > 0)) { in sctp_timeout_handler()
1849 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { in sctp_timeout_handler()
1864 stcb->asoc.timoinit++; in sctp_timeout_handler()
1876 stcb->asoc.timosack++; in sctp_timeout_handler()
1889 stcb->asoc.timoshutdown++; in sctp_timeout_handler()
1905 stcb->asoc.timoheartbeat++; in sctp_timeout_handler()
1926 stcb->asoc.timocookie++; in sctp_timeout_handler()
1980 stcb->asoc.timoshutdownack++; in sctp_timeout_handler()
2061 * free asoc, always unlocks (or destroy's) so prevent in sctp_timeout_handler()
2101 sctp_fix_ecn_echo(&stcb->asoc); in sctp_timeout_handler()
2118 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_timeout_handler()
2179 if ((stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED) && in sctp_timer_start()
2207 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2227 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2245 tmr = &stcb->asoc.dack_timer; in sctp_timer_start()
2246 to_ticks = sctp_msecs_to_ticks(stcb->asoc.delayed_ack); in sctp_timer_start()
2260 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2288 to_ticks = stcb->asoc.initial_rto; in sctp_timer_start()
2333 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2388 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2406 tmr = &stcb->asoc.asconf_timer; in sctp_timer_start()
2408 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2426 tmr = &stcb->asoc.shut_guard_timer; in sctp_timer_start()
2428 if (stcb->asoc.maxrto < UINT32_MAX / 5) { in sctp_timer_start()
2429 to_ticks = sctp_msecs_to_ticks(5 * stcb->asoc.maxrto); in sctp_timer_start()
2446 tmr = &stcb->asoc.autoclose_timer; in sctp_timer_start()
2447 to_ticks = stcb->asoc.sctp_autoclose_ticks; in sctp_timer_start()
2462 tmr = &stcb->asoc.strreset_timer; in sctp_timer_start()
2464 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2495 tmr = &stcb->asoc.strreset_timer; in sctp_timer_start()
2520 tmr = &stcb->asoc.delete_prim_timer; in sctp_timer_start()
2521 to_ticks = sctp_msecs_to_ticks(stcb->asoc.initial_rto); in sctp_timer_start()
2544 stcb->asoc.num_send_timers_up++; in sctp_timer_start()
2570 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_timer_start()
2663 tmr = &stcb->asoc.dack_timer; in sctp_timer_stop()
2740 tmr = &stcb->asoc.asconf_timer; in sctp_timer_stop()
2751 tmr = &stcb->asoc.shut_guard_timer; in sctp_timer_stop()
2762 tmr = &stcb->asoc.autoclose_timer; in sctp_timer_stop()
2773 tmr = &stcb->asoc.strreset_timer; in sctp_timer_stop()
2800 tmr = &stcb->asoc.strreset_timer; in sctp_timer_stop()
2822 tmr = &stcb->asoc.delete_prim_timer; in sctp_timer_stop()
2846 stcb->asoc.num_send_timers_up--; in sctp_timer_stop()
2847 if (stcb->asoc.num_send_timers_up < 0) { in sctp_timer_stop()
2848 stcb->asoc.num_send_timers_up = 0; in sctp_timer_stop()
2877 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_timer_stop()
2920 struct sctp_association *asoc, in sctp_calculate_rto() argument
2935 if (stcb->asoc.use_precise_time) { in sctp_calculate_rto()
2955 if ((asoc->cc_functions.sctp_rtt_calculated) && (rtt_from_sack == SCTP_RTT_FROM_DATA)) { in sctp_calculate_rto()
2960 (*asoc->cc_functions.sctp_rtt_calculated) (stcb, net, &now); in sctp_calculate_rto()
3012 (stcb->asoc.sat_network_lockout == 0)) { in sctp_calculate_rto()
3013 stcb->asoc.sat_network = 1; in sctp_calculate_rto()
3014 } else if ((!first_measure) && stcb->asoc.sat_network) { in sctp_calculate_rto()
3015 stcb->asoc.sat_network = 0; in sctp_calculate_rto()
3016 stcb->asoc.sat_network_lockout = 1; in sctp_calculate_rto()
3019 if (new_rto < stcb->asoc.minrto) { in sctp_calculate_rto()
3020 new_rto = stcb->asoc.minrto; in sctp_calculate_rto()
3022 if (new_rto > stcb->asoc.maxrto) { in sctp_calculate_rto()
3023 new_rto = stcb->asoc.maxrto; in sctp_calculate_rto()
3197 sac->sac_outbound_streams = stcb->asoc.streamoutcnt; in sctp_notify_assoc_change()
3198 sac->sac_inbound_streams = stcb->asoc.streamincnt; in sctp_notify_assoc_change()
3204 if (stcb->asoc.prsctp_supported == 1) { in sctp_notify_assoc_change()
3207 if (stcb->asoc.auth_supported == 1) { in sctp_notify_assoc_change()
3210 if (stcb->asoc.asconf_supported == 1) { in sctp_notify_assoc_change()
3213 if (stcb->asoc.idata_supported == 1) { in sctp_notify_assoc_change()
3217 if (stcb->asoc.reconfig_supported == 1) { in sctp_notify_assoc_change()
3227 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_assoc_change()
3228 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_assoc_change()
3353 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_peer_addr_change()
3354 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_peer_addr_change()
3401 if (stcb->asoc.idata_supported) { in sctp_notify_send_failed()
3485 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_send_failed()
3486 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_send_failed()
3585 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_send_failed2()
3586 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_send_failed2()
3628 sai->sai_adaptation_ind = stcb->asoc.peers_adaptation; in sctp_notify_adaptation_layer()
3635 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_adaptation_layer()
3636 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_adaptation_layer()
3689 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_partial_delivery_indication()
3690 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_partial_delivery_indication()
3758 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_shutdown_event()
3759 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_shutdown_event()
3808 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_sender_dry_event()
3809 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_sender_dry_event()
3841 if ((stcb->asoc.peer_req_out) && flag) { in sctp_notify_stream_reset_add()
3843 stcb->asoc.peer_req_out = 0; in sctp_notify_stream_reset_add()
3846 stcb->asoc.peer_req_out = 0; in sctp_notify_stream_reset_add()
3858 stradd->strchange_instrms = stcb->asoc.streamincnt; in sctp_notify_stream_reset_add()
3859 stradd->strchange_outstrms = stcb->asoc.streamoutcnt; in sctp_notify_stream_reset_add()
3862 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_add()
3868 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_stream_reset_add()
3869 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_stream_reset_add()
3912 strasoc->assocreset_local_tsn = stcb->asoc.sending_seq; in sctp_notify_stream_reset_tsn()
3913 strasoc->assocreset_remote_tsn = stcb->asoc.mapping_array_base_tsn + 1; in sctp_notify_stream_reset_tsn()
3916 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_tsn()
3922 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_stream_reset_tsn()
3923 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_stream_reset_tsn()
3983 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset()
3989 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_stream_reset()
3990 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_stream_reset()
4059 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_remote_error()
4060 0, 0, stcb->asoc.context, 0, 0, 0, in sctp_notify_remote_error()
4086 if (stcb->asoc.state & SCTP_STATE_CLOSED_SOCKET) { in sctp_ulp_notify()
4112 if (stcb->asoc.assoc_up_sent == 0) { in sctp_ulp_notify()
4114 stcb->asoc.assoc_up_sent = 1; in sctp_ulp_notify()
4116 if (stcb->asoc.adaptation_needed && (stcb->asoc.adaptation_sent == 0)) { in sctp_ulp_notify()
4119 if (stcb->asoc.auth_supported == 0) { in sctp_ulp_notify()
4184 if (stcb->asoc.auth_supported == 0) { in sctp_ulp_notify()
4262 struct sctp_association *asoc; in sctp_report_all_outbound() local
4271 asoc = &stcb->asoc; in sctp_report_all_outbound()
4272 if (asoc->state & SCTP_STATE_ABOUT_TO_BE_FREED) { in sctp_report_all_outbound()
4278 (asoc->state & SCTP_STATE_CLOSED_SOCKET)) { in sctp_report_all_outbound()
4283 TAILQ_FOREACH_SAFE(chk, &asoc->sent_queue, sctp_next, nchk) { in sctp_report_all_outbound()
4284 TAILQ_REMOVE(&asoc->sent_queue, chk, sctp_next); in sctp_report_all_outbound()
4285 asoc->sent_queue_cnt--; in sctp_report_all_outbound()
4287 if (asoc->strmout[chk->rec.data.sid].chunks_on_queues > 0) { in sctp_report_all_outbound()
4288 asoc->strmout[chk->rec.data.sid].chunks_on_queues--; in sctp_report_all_outbound()
4296 sctp_free_bufspace(stcb, asoc, chk, 1); in sctp_report_all_outbound()
4308 TAILQ_FOREACH_SAFE(chk, &asoc->send_queue, sctp_next, nchk) { in sctp_report_all_outbound()
4309 TAILQ_REMOVE(&asoc->send_queue, chk, sctp_next); in sctp_report_all_outbound()
4310 asoc->send_queue_cnt--; in sctp_report_all_outbound()
4311 if (asoc->strmout[chk->rec.data.sid].chunks_on_queues > 0) { in sctp_report_all_outbound()
4312 asoc->strmout[chk->rec.data.sid].chunks_on_queues--; in sctp_report_all_outbound()
4319 sctp_free_bufspace(stcb, asoc, chk, 1); in sctp_report_all_outbound()
4330 for (i = 0; i < asoc->streamoutcnt; i++) { in sctp_report_all_outbound()
4332 outs = &asoc->strmout[i]; in sctp_report_all_outbound()
4335 atomic_subtract_int(&asoc->stream_queue_cnt, 1); in sctp_report_all_outbound()
4337 stcb->asoc.ss_functions.sctp_ss_remove_from_stream(stcb, asoc, outs, sp); in sctp_report_all_outbound()
4338 sctp_free_spbufspace(stcb, asoc, sp); in sctp_report_all_outbound()
4377 (stcb->asoc.state & SCTP_STATE_CLOSED_SOCKET)) { in sctp_abort_notification()
4381 /* Tell them we lost the asoc */ in sctp_abort_notification()
4407 vtag = stcb->asoc.peer_vtag; in sctp_abort_association()
4408 vrf_id = stcb->asoc.vrf_id; in sctp_abort_association()
4444 if ((stcb->asoc.tsn_in_at == 0) && (stcb->asoc.tsn_in_wrapped == 0)) { in sctp_print_out_track_log()
4448 if (stcb->asoc.tsn_in_wrapped) { in sctp_print_out_track_log()
4449 for (i = stcb->asoc.tsn_in_at; i < SCTP_TSN_LOG_SIZE; i++) { in sctp_print_out_track_log()
4451 stcb->asoc.in_tsnlog[i].tsn, in sctp_print_out_track_log()
4452 stcb->asoc.in_tsnlog[i].strm, in sctp_print_out_track_log()
4453 stcb->asoc.in_tsnlog[i].seq, in sctp_print_out_track_log()
4454 stcb->asoc.in_tsnlog[i].flgs, in sctp_print_out_track_log()
4455 stcb->asoc.in_tsnlog[i].sz); in sctp_print_out_track_log()
4458 if (stcb->asoc.tsn_in_at) { in sctp_print_out_track_log()
4459 for (i = 0; i < stcb->asoc.tsn_in_at; i++) { in sctp_print_out_track_log()
4461 stcb->asoc.in_tsnlog[i].tsn, in sctp_print_out_track_log()
4462 stcb->asoc.in_tsnlog[i].strm, in sctp_print_out_track_log()
4463 stcb->asoc.in_tsnlog[i].seq, in sctp_print_out_track_log()
4464 stcb->asoc.in_tsnlog[i].flgs, in sctp_print_out_track_log()
4465 stcb->asoc.in_tsnlog[i].sz); in sctp_print_out_track_log()
4470 if ((stcb->asoc.tsn_out_at == 0) && in sctp_print_out_track_log()
4471 (stcb->asoc.tsn_out_wrapped == 0)) { in sctp_print_out_track_log()
4474 if (stcb->asoc.tsn_out_wrapped) { in sctp_print_out_track_log()
4475 for (i = stcb->asoc.tsn_out_at; i < SCTP_TSN_LOG_SIZE; i++) { in sctp_print_out_track_log()
4477 stcb->asoc.out_tsnlog[i].tsn, in sctp_print_out_track_log()
4478 stcb->asoc.out_tsnlog[i].strm, in sctp_print_out_track_log()
4479 stcb->asoc.out_tsnlog[i].seq, in sctp_print_out_track_log()
4480 stcb->asoc.out_tsnlog[i].flgs, in sctp_print_out_track_log()
4481 stcb->asoc.out_tsnlog[i].sz); in sctp_print_out_track_log()
4484 if (stcb->asoc.tsn_out_at) { in sctp_print_out_track_log()
4485 for (i = 0; i < stcb->asoc.tsn_out_at; i++) { in sctp_print_out_track_log()
4487 stcb->asoc.out_tsnlog[i].tsn, in sctp_print_out_track_log()
4488 stcb->asoc.out_tsnlog[i].strm, in sctp_print_out_track_log()
4489 stcb->asoc.out_tsnlog[i].seq, in sctp_print_out_track_log()
4490 stcb->asoc.out_tsnlog[i].flgs, in sctp_print_out_track_log()
4491 stcb->asoc.out_tsnlog[i].sz); in sctp_print_out_track_log()
4533 /* now free the asoc */ in sctp_abort_an_association()
5037 sctp_free_bufspace(struct sctp_tcb *stcb, struct sctp_association *asoc, in sctp_free_bufspace() argument
5043 atomic_subtract_int(&asoc->chunks_on_out_queue, chk_cnt); in sctp_free_bufspace()
5047 asoc->total_output_queue_size, in sctp_free_bufspace()
5053 if (asoc->total_output_queue_size >= tp1->book_size) { in sctp_free_bufspace()
5054 atomic_subtract_int(&asoc->total_output_queue_size, tp1->book_size); in sctp_free_bufspace()
5056 asoc->total_output_queue_size = 0; in sctp_free_bufspace()
5084 stcb->asoc.abandoned_sent[0]++; in sctp_release_pr_sctp_chunk()
5085 stcb->asoc.abandoned_sent[PR_SCTP_POLICY(tp1->flags)]++; in sctp_release_pr_sctp_chunk()
5086 stcb->asoc.strmout[sid].abandoned_sent[0]++; in sctp_release_pr_sctp_chunk()
5088 stcb->asoc.strmout[sid].abandoned_sent[PR_SCTP_POLICY(tp1->flags)]++; in sctp_release_pr_sctp_chunk()
5091 stcb->asoc.abandoned_unsent[0]++; in sctp_release_pr_sctp_chunk()
5092 stcb->asoc.abandoned_unsent[PR_SCTP_POLICY(tp1->flags)]++; in sctp_release_pr_sctp_chunk()
5093 stcb->asoc.strmout[sid].abandoned_unsent[0]++; in sctp_release_pr_sctp_chunk()
5095 stcb->asoc.strmout[sid].abandoned_unsent[PR_SCTP_POLICY(tp1->flags)]++; in sctp_release_pr_sctp_chunk()
5105 sctp_free_bufspace(stcb, &stcb->asoc, tp1, 1); in sctp_release_pr_sctp_chunk()
5106 stcb->asoc.peers_rwnd += tp1->send_size; in sctp_release_pr_sctp_chunk()
5107 stcb->asoc.peers_rwnd += SCTP_BASE_SYSCTL(sctp_peer_chunk_oh); in sctp_release_pr_sctp_chunk()
5119 stcb->asoc.sent_queue_cnt_removeable--; in sctp_release_pr_sctp_chunk()
5146 TAILQ_FOREACH_SAFE(tp1, &stcb->asoc.send_queue, sctp_next, tp2) { in sctp_release_pr_sctp_chunk()
5148 (!SCTP_MID_EQ(stcb->asoc.idata_supported, tp1->rec.data.mid, mid))) { in sctp_release_pr_sctp_chunk()
5158 sctp_free_bufspace(stcb, &stcb->asoc, tp1, 1); in sctp_release_pr_sctp_chunk()
5175 TAILQ_REMOVE(&stcb->asoc.send_queue, tp1, sctp_next); in sctp_release_pr_sctp_chunk()
5180 TAILQ_INSERT_TAIL(&stcb->asoc.sent_queue, tp1, in sctp_release_pr_sctp_chunk()
5182 stcb->asoc.send_queue_cnt--; in sctp_release_pr_sctp_chunk()
5183 stcb->asoc.sent_queue_cnt++; in sctp_release_pr_sctp_chunk()
5191 strq = &stcb->asoc.strmout[sid]; in sctp_release_pr_sctp_chunk()
5215 chk->asoc = &stcb->asoc; in sctp_release_pr_sctp_chunk()
5216 if (stcb->asoc.idata_supported == 0) { in sctp_release_pr_sctp_chunk()
5234 chk->rec.data.tsn = atomic_fetchadd_int(&stcb->asoc.sending_seq, 1); in sctp_release_pr_sctp_chunk()
5236 TAILQ_INSERT_TAIL(&stcb->asoc.sent_queue, chk, sctp_next); in sctp_release_pr_sctp_chunk()
5237 stcb->asoc.sent_queue_cnt++; in sctp_release_pr_sctp_chunk()
5238 stcb->asoc.pr_sctp_cnt++; in sctp_release_pr_sctp_chunk()
5244 if (stcb->asoc.idata_supported == 0) { in sctp_release_pr_sctp_chunk()
5262 sctp_free_spbufspace(stcb, &stcb->asoc, sp); in sctp_release_pr_sctp_chunk()
5438 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_user_rcvd()
5441 (stcb->asoc.state & (SCTP_STATE_ABOUT_TO_BE_FREED | SCTP_STATE_SHUTDOWN_RECEIVED))) { in sctp_user_rcvd()
5460 rwnd = sctp_calc_rwnd(stcb, &stcb->asoc); in sctp_user_rcvd()
5461 if (rwnd >= stcb->asoc.my_last_reported_rwnd) { in sctp_user_rcvd()
5462 dif = rwnd - stcb->asoc.my_last_reported_rwnd; in sctp_user_rcvd()
5471 if (stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED) { in sctp_user_rcvd()
5480 if (stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED) { in sctp_user_rcvd()
5507 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_user_rcvd()
5796 (ctl->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started == 0))) in sctp_sorecvmsg()
5812 (ctl->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started == 0)))) { in sctp_sorecvmsg()
5851 (stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED)) { in sctp_sorecvmsg()
5870 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_sorecvmsg()
5889 stcb->asoc.strmin[control->sinfo_stream].delivery_started = 1; in sctp_sorecvmsg()
5946 sinfo->sinfo_cumtsn = stcb->asoc.cumulative_tsn; in sctp_sorecvmsg()
6055 stcb->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED) { in sctp_sorecvmsg()
6071 control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; in sctp_sorecvmsg()
6140 atomic_subtract_int(&stcb->asoc.sb_cc, (int)cp_len); in sctp_sorecvmsg()
6300 control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; in sctp_sorecvmsg()
6305 control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; in sctp_sorecvmsg()
6357 control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; in sctp_sorecvmsg()
6451 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_sorecvmsg()
6458 stcb->asoc.my_rwnd, in sctp_sorecvmsg()
6646 if (sctp_add_remote_addr(stcb, sa, NULL, stcb->asoc.port, in sctp_connectx_helper_add()
6671 if (sctp_add_remote_addr(stcb, sa, NULL, stcb->asoc.port, in sctp_connectx_helper_add()
6979 loopback_scope = stcb->asoc.scope.loopback_scope; in sctp_local_addr_count()
6981 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; in sctp_local_addr_count()
6982 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; in sctp_local_addr_count()
6985 local_scope = stcb->asoc.scope.local_scope; in sctp_local_addr_count()
6986 site_scope = stcb->asoc.scope.site_scope; in sctp_local_addr_count()
6987 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; in sctp_local_addr_count()
6990 vrf = sctp_find_vrf(stcb->asoc.vrf_id); in sctp_local_addr_count()
7276 if (ntohl(sh->v_tag) != stcb->asoc.peer_vtag) { in sctp_recv_icmp_tunneled_packet()
7291 (ntohl(ch->init.initiate_tag) != stcb->asoc.my_vtag)) { in sctp_recv_icmp_tunneled_packet()
7400 if (ntohl(sh.v_tag) != stcb->asoc.peer_vtag) { in sctp_recv_icmp6_tunneled_packet()
7432 (ntohl(initiate_tag) != stcb->asoc.my_vtag)) { in sctp_recv_icmp6_tunneled_packet()
7660 int old_state = stcb->asoc.state; in sctp_set_state()
7666 stcb->asoc.state = (stcb->asoc.state & ~SCTP_STATE_MASK) | new_state; in sctp_set_state()
7685 int old_state = stcb->asoc.state; in sctp_add_substate()
7691 stcb->asoc.state |= substate; in sctp_add_substate()