Lines Matching defs:seg_seq
2621 uint32_t seg_seq;
2659 seg_seq = ntohl(tcph->tha_seq);
2742 tcp_time_wait_processing(tcp, mp, seg_seq, seg_ack,
2798 tcp->tcp_irs = seg_seq;
2799 tcp->tcp_rack = seg_seq;
2800 tcp->tcp_rnxt = seg_seq + 1;
2858 tcp->tcp_irs = seg_seq;
2859 tcp->tcp_rack = seg_seq;
2860 tcp->tcp_rnxt = seg_seq + 1;
2889 tcp->tcp_swl1 = seg_seq;
2919 seg_seq++;
2970 gap = seg_seq - tcp->tcp_rnxt;
2974 * and what we got for seg_seq. A positive value for gap means
2979 if (seg_seq == tcp->tcp_irs && (flags & TH_SYN) &&
2982 seg_seq++;
3016 "%d, flags 0x%x, seg_seq %u, seg_ack %u, "
3018 gap, rgap, flags, seg_seq, seg_ack,
3058 /* Fix seg_seq, and chew the gap off the front. */
3059 seg_seq = tcp->tcp_rnxt;
3119 if (tcp->tcp_rwnd == 0 && seg_seq == tcp->tcp_rnxt) {
3175 SEQ_LEQ(seg_seq, tcp->tcp_rack)) {
3180 if (seg_seq != tcp->tcp_rnxt || tcp->tcp_reass_head) {
3190 tcp->tcp_ofo_fin_seq = seg_seq + seg_len;
3199 seg_seq, seg_seq + seg_len,
3207 mp = tcp_reass(tcp, mp, seg_seq);
3215 seg_seq = tcp->tcp_rnxt;
3222 seg_seq + seg_len == tcp->tcp_ofo_fin_seq) {
3251 seg_seq + seg_len == tcp->tcp_ofo_fin_seq) {
3286 * be already rejected. Note that we allow seg_seq to be
3289 assert(SEQ_GEQ(seg_seq, tcp->tcp_rnxt) &&
3290 SEQ_LEQ(seg_seq, tcp->tcp_rnxt + tcp->tcp_rwnd));
3300 seg_seq + 1, TH_RST|TH_ACK, 0, sock_id);
3309 printf("No ack in segment, dropped it, seq:%x\n", seg_seq);
3420 tcp->tcp_swl1 = seg_seq;
3969 SEQ_LT(tcp->tcp_swl1, seg_seq) ||
3970 (tcp->tcp_swl1 == seg_seq && new_swnd > tcp->tcp_swnd)) {
3984 tcp->tcp_swl1 = seg_seq;
5203 uint32_t seg_seq, uint32_t seg_ack, int seg_len, tcph_t *tcph,
5232 gap = seg_seq - tcp->tcp_rnxt;
5265 /* Fix seg_seq, and chew the gap off the front. */
5266 seg_seq = tcp->tcp_rnxt;
5340 SEQ_LEQ(seg_seq, tcp->tcp_rack)) {
5345 if (seg_seq != tcp->tcp_rnxt && seg_len > 0) {
5360 tcp_xmit_ctl("TH_SYN", tcp, NULL, seg_ack, seg_seq + 1,
6077 uint32_t seg_seq;
6084 seg_seq = BE32_TO_U32(tcph->th_seq);
6098 mp, 0, seg_seq + seg_len,