| /freebsd-14.2/sys/netinet/ |
| H A D | tcp_reass.c | 352 i = (th->th_seq + tlen) - first->tqe_start; in tcp_reass_prepend() 364 first->tqe_start = th->th_seq; in tcp_reass_prepend() 548 KASSERT(SEQ_GEQ(th->th_seq, tp->rcv_nxt), in tcp_reass() 650 th->th_seq += i; in tcp_reass() 734 if (SEQ_LT(th->th_seq, tp->rcv_nxt)) { in tcp_reass() 743 th->th_seq, tp->rcv_nxt, tp); in tcp_reass() 745 i = tp->rcv_nxt - th->th_seq; in tcp_reass() 750 th->th_seq += i; in tcp_reass() 789 if (SEQ_GT(q->tqe_start, th->th_seq)) in tcp_reass() 861 th->th_seq += i; in tcp_reass() [all …]
|
| H A D | tcp_timewait.c | 229 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_twcheck() 255 th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK); in tcp_twcheck() 285 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck() 294 th->th_seq != tp->rcv_nxt || th->th_ack != tp->snd_nxt) { in tcp_twcheck()
|
| H A D | tcp_input.c | 1750 th->th_seq == tp->rcv_nxt && in tcp_do_segment() 1911 tp->snd_wl1 = th->th_seq; in tcp_do_segment() 2029 tp->irs = th->th_seq; in tcp_do_segment() 2109 th->th_seq++; in tcp_do_segment() 2118 tp->snd_wl1 = th->th_seq - 1; in tcp_do_segment() 2119 tp->rcv_up = th->th_seq; in tcp_do_segment() 2265 th->th_seq++; in tcp_do_segment() 2301 th->th_seq + todrop); in tcp_do_segment() 2309 th->th_seq += todrop; in tcp_do_segment() 2528 tp->snd_wl1 = th->th_seq - 1; in tcp_do_segment() [all …]
|
| H A D | tcp_syncache.c | 683 if ((SEQ_GEQ(th->th_seq, sc->sc_irs + 1) && in syncache_chkrst() 687 th->th_seq == sc->sc_irs + 1) { in syncache_chkrst() 704 th->th_seq, sc->sc_irs + 1, sc->sc_wnd); in syncache_chkrst() 718 th->th_seq, sc->sc_irs + 1, sc->sc_wnd); in syncache_chkrst() 763 if (ntohl(th_seq) != sc->sc_iss) in syncache_unreach() 1285 if (SEQ_LEQ(th->th_seq, sc->sc_irs) || in syncache_expand() 1286 SEQ_GT(th->th_seq, sc->sc_irs + sc->sc_wnd)) { in syncache_expand() 1652 sc->sc_irs = th->th_seq; in syncache_add() 1910 th->th_seq = htonl(sc->sc_iss); in syncache_respond() 1912 th->th_seq = htonl(sc->sc_iss + 1); in syncache_respond() [all …]
|
| H A D | tcpip.h | 51 #define ti_seq ti_t.th_seq
|
| H A D | tcp_lro_hpts.c | 80 ae->seq = th->th_seq; in build_ack_entry() 153 int frm, int32_t tcp_data_len, uint32_t th_seq, in tcp_lro_log() argument 176 log.u_bbr.inflight = th_seq; in tcp_lro_log()
|
| H A D | tcp_var.h | 1586 th->th_seq = ntohl(th->th_seq); in tcp_fields_to_host() 1596 th->th_seq = htonl(th->th_seq); in tcp_fields_to_net()
|
| /freebsd-14.2/sys/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 582 todrop = tp->rcv_nxt - th->th_seq; in _ctf_drop_checks() 586 th->th_seq++; in _ctf_drop_checks() 626 tcp_update_sack_list(tp, th->th_seq, in _ctf_drop_checks() 627 th->th_seq + todrop); in _ctf_drop_checks() 630 th->th_seq += todrop; in _ctf_drop_checks() 655 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in _ctf_drop_checks() 738 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in __ctf_process_rst() 746 (tp->last_ack_sent == th->th_seq) || in __ctf_process_rst() 747 (tp->rcv_nxt == th->th_seq)) { in __ctf_process_rst() 826 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in ctf_challenge_ack() [all …]
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | slcompress.c | 314 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp() 516 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp() 521 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp() 538 DECODEL(th->th_seq) in sl_uncompress_tcp() 548 cs->cs_ip.ip_id, (u_long)ntohl(th->th_seq)); in sl_uncompress_tcp()
|
| /freebsd-14.2/sys/net/ |
| H A D | slcompress.c | 301 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp() 530 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core() 535 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core() 550 DECODEL(th->th_seq) in sl_uncompress_tcp_core()
|
| /freebsd-14.2/sbin/ipf/ipsend/ |
| H A D | iptests.c | 917 t->th_seq = htonl(1); in ip_test5() 949 t->th_seq = htonl(0); in ip_test5() 955 t->th_seq = htonl(1); in ip_test5() 961 t->th_seq = htonl(0x7fffffff); in ip_test5() 967 t->th_seq = htonl(0x80000000); in ip_test5() 973 t->th_seq = htonl(0xc0000000); in ip_test5() 979 t->th_seq = htonl(0xffffffff); in ip_test5() 1034 t->th_seq = htonl(0); in ip_test5() 1040 t->th_seq = htonl(0x7fff); in ip_test5() 1106 t->th_seq = htonl(tcb.snd_nxt); in ip_test5() [all …]
|
| H A D | resend.c | 56 (u_long)t->th_seq, (u_long)t->th_ack); in dumppacket()
|
| /freebsd-14.2/sys/netpfil/pf/ |
| H A D | pf_syncookies.c | 301 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send() 318 seq = ntohl(pd->hdr.tcp.th_seq) - 1; in pf_syncookie_check() 486 hash = pf_syncookie_mac(pd, cookie, ntohl(pd->hdr.tcp.th_seq)); in pf_syncookie_generate() 508 seq = ntohl(pd->hdr.tcp.th_seq) - 1; in pf_syncookie_recreate_syn()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | tcp.h | 41 uint32_t th_seq; /* (u) */ member
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | tcp.h | 43 nd_uint32_t th_seq; /* sequence number */ member
|
| /freebsd-14.2/sys/netinet/libalias/ |
| H A D | alias_irc.c | 439 delta = GetDeltaSeqOut(tc->th_seq, lnk); in AliasHandleIrcOut() 441 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
|
| H A D | alias_smedia.c | 395 delta = GetDeltaSeqOut(tc->th_seq, lnk); in alias_rtsp_out() 397 tc->th_seq, tc->th_off); in alias_rtsp_out()
|
| H A D | alias_ftp.c | 734 delta = GetDeltaSeqOut(tc->th_seq, lnk); in NewFtpMessage() 736 pip->ip_len, tc->th_seq, tc->th_off); in NewFtpMessage()
|
| H A D | alias.c | 1163 delta = GetDeltaSeqOut(tc->th_seq, lnk); in TcpAliasOut() 1165 accumulate += twowords(&tc->th_seq); in TcpAliasOut() 1166 tc->th_seq = htonl(ntohl(tc->th_seq) + delta); in TcpAliasOut() 1167 accumulate -= twowords(&tc->th_seq); in TcpAliasOut()
|
| /freebsd-14.2/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_rcmd_pxy.c | 172 (tcp->th_seq != rc->rcmd_portseq)) in ipf_p_rcmd_portmsg() 198 rc->rcmd_portseq = tcp->th_seq; in ipf_p_rcmd_portmsg()
|
| H A D | ip_pptp_pxy.c | 288 start = ntohl(tcp->th_seq); in ipf_p_pptp_nextmessage() 522 pptp->pptp_side[rev].pptps_next = ntohl(tcp->th_seq) + 1; in ipf_p_pptp_inout() 523 pptp->pptp_side[rev].pptps_nexthdr = ntohl(tcp->th_seq) + 1; in ipf_p_pptp_inout()
|
| H A D | ip_proxy.c | 1141 seq1 = (u_32_t)ntohl(tcp->th_seq); in ipf_proxy_fixseqack() 1159 tcp->th_seq = htonl(seq1); in ipf_proxy_fixseqack() 1194 seq1 = ntohl(tcp->th_seq); in ipf_proxy_fixseqack() 1211 tcp->th_seq = htonl(seq1); in ipf_proxy_fixseqack() 1255 (u_32_t)ntohl(tcp->th_seq), (u_32_t)ntohl(tcp->th_ack)); in ipf_proxy_fixseqack()
|
| /freebsd-14.2/sys/dev/sfxge/ |
| H A D | sfxge_rx.c | 529 unsigned th_seq, pkt_length; in sfxge_lro_try_merge() local 546 th_seq = ntohl(th->th_seq); in sfxge_lro_try_merge() 564 if (__predict_false(th_seq != c->next_seq)) { in sfxge_lro_try_merge() 569 c->next_seq = th_seq + data_length; in sfxge_lro_try_merge() 573 c->next_seq = th_seq + data_length; in sfxge_lro_try_merge()
|
| /freebsd-14.2/sbin/ipf/libipf/ |
| H A D | ipft_tx.c | 284 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseline() 455 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseipv6()
|
| /freebsd-14.2/cddl/lib/libdtrace/ |
| H A D | tcp.d | 264 tcp_seq = p == NULL ? -1 : ntohl(p->th_seq); 283 tcp_seq = p == NULL ? -1 : p->th_seq;
|