Home | History | Annotate | Download | only in netinet

Lines Matching defs:tsn

180 sctp_build_ctl_nchunk(struct sctp_tcb *stcb, uint32_t tsn, uint32_t ppid,
213 outinfo->sinfo_tsn = tsn;
508 * 2) run out of sequential TSN's
812 * without a TSN wrap for ordered delivery (maybe).
949 * should compare to TSN somehow...
1006 u_int32_t tsn;
1018 tsn = chk->rec.data.TSN_seq;
1020 if (tsn != chk->rec.data.TSN_seq) {
1027 tsn++;
1213 * to TSN somehow... sigh for now just blow away the
1584 * start reception, by backing down the TSN
1672 u_int32_t tsn, gap;
1679 tsn = ntohl(ch->dp.tsn);
1681 sctp_log_map(0, tsn, asoc->cumulative_tsn, SCTP_MAP_PREPARE_SLIDE);
1683 if (compare_with_wrap(asoc->cumulative_tsn, tsn, MAX_TSN) ||
1684 asoc->cumulative_tsn == tsn) {
1689 asoc->dup_tsns[asoc->numduptsns] = tsn;
1694 /* Calculate the number of TSN's between the base and this TSN */
1695 if (tsn >= asoc->mapping_array_base_tsn) {
1696 gap = tsn
1698 gap = (MAX_TSN - asoc->mapping_array_base_tsn) + tsn + 1;
1710 if (compare_with_wrap(tsn, *high_tsn, MAX_TSN)) {
1711 *high_tsn = tsn;
1718 asoc->dup_tsns[asoc->numduptsns] = tsn;
1749 * we MAY let one through only IF this TSN is the one we are
1768 if (compare_with_wrap(tsn,
1774 printf("My rwnd overrun1:tsn:%lx rwnd %lu sbspace:%ld delq:%d!\n",
1775 (u_long)tsn, (u_long)asoc->my_rwnd,
1826 * have 4k chunks based on our TSN spread allowed
1915 control = sctp_build_ctl_nchunk(stcb, tsn,
1967 if (compare_with_wrap(tsn, asoc->highest_tsn_inside_map, MAX_TSN)) {
1969 asoc->highest_tsn_inside_map = tsn;
2003 sctp_log_strm_del_alt(tsn, strmseq,
2028 chk->rec.data.TSN_seq = tsn;
2154 * intervening (aka the TSN is after where our cum-ack needs
2157 * they are all sorted and processed by TSN order. It
2161 ((compare_with_wrap(tsn, ntohl(asoc->pending_reply->reset_at_tsn), MAX_TSN)) ||
2162 (tsn == ntohl(asoc->pending_reply->reset_at_tsn)))
2180 if (compare_with_wrap(tsn, asoc->highest_tsn_inside_map, MAX_TSN)) {
2182 asoc->highest_tsn_inside_map = tsn;
2194 sctp_log_strm_del_alt(tsn, strmseq, SCTP_STR_LOG_FROM_MARK_TSN);
2244 * missing a TSN.
2256 panic("huh, cumack greater than high-tsn in map");
2289 /* now calculate the ceiling of the move using our highest TSN value */
2350 /* we have finished working through the backlogged TSN's now
2474 * start reception, by backing down the TSN
2754 * if the new frag starts after the last TSN
2993 /* we are beyond the tsn in the sack */
3033 * and if so we see if the biggest TSN we saw in the sack is
3035 * tsn... otherwise we CAN strike the TSN.
3039 * Strike the TSN if in fast-recovery and
3068 * Strike the TSN, since this ack is
3087 * If our TSN is larger than the Highest TSN Newly
3092 /* Strike the TSN */
3136 * TSN) and subtract one to get the one we last
3208 * We can't fwd-tsn past any that are reliable
3292 * tsn on sent queue.
3558 * no way, we have not even sent this TSN out yet.
3652 /* process the new consecutive TSN first */
4122 /* C3. See if we need to send a Fwd-TSN */
4126 * ISSUE with ECN, see FWD-TSN processing for notes
4132 /* ECN Nonce: Disable Nonce Sum check when FWD TSN is sent and store resync tsn*/
4184 /* Disable Nonce Sum Checking and store the resync tsn*/
4291 * sacked after fwd-tsn sent.
4393 * sender of the forward TSN, when the SACK comes back
4394 * that acknowledges the FWD-TSN we must reset the
4400 * it is really related to PR-SCTP and FWD-TSN's
4403 /* The pr-sctp fwd tsn */
4429 printf("Bad size too small/big fwd-tsn\n");
4455 * now we know the new TSN is more advanced, let's find the
4500 * fwd-tsn went outside my gap array - not a
4568 * in its FWD-TSN we WILL have a problem
4593 * fwd-tsn's mark. Some checks...
4597 /* Special case PD-API is up and what we fwd-tsn'
4632 printf("Using NEW method, %d strseq's reported in FWD-TSN\n",