Home
last modified time | relevance | path

Searched refs:th_seq (Results 1 – 25 of 59) sorted by relevance

123

/freebsd-13.1/sys/netinet/
H A Dtcp_reass.c360 i = (th->th_seq + tlen) - first->tqe_start; in tcp_reass_prepend()
372 first->tqe_start = th->th_seq; in tcp_reass_prepend()
555 KASSERT(SEQ_GEQ(th->th_seq, tp->rcv_nxt), in tcp_reass()
658 th->th_seq += i; in tcp_reass()
742 if (SEQ_LT(th->th_seq, tp->rcv_nxt)) { in tcp_reass()
751 th->th_seq, tp->rcv_nxt, tp); in tcp_reass()
753 i = tp->rcv_nxt - th->th_seq; in tcp_reass()
758 th->th_seq += i; in tcp_reass()
797 if (SEQ_GT(q->tqe_start, th->th_seq)) in tcp_reass()
869 th->th_seq += i; in tcp_reass()
[all …]
H A Dtcp_input.c1793 th->th_seq == tp->rcv_nxt && in tcp_do_segment()
1944 tp->snd_wl1 = th->th_seq; in tcp_do_segment()
2060 tp->irs = th->th_seq; in tcp_do_segment()
2143 th->th_seq++; in tcp_do_segment()
2152 tp->snd_wl1 = th->th_seq - 1; in tcp_do_segment()
2153 tp->rcv_up = th->th_seq; in tcp_do_segment()
2311 th->th_seq++; in tcp_do_segment()
2347 th->th_seq + todrop); in tcp_do_segment()
2355 th->th_seq += todrop; in tcp_do_segment()
2521 tp->snd_wl1 = th->th_seq - 1; in tcp_do_segment()
[all …]
H A Dtcp_syncache.c687 if ((SEQ_GEQ(th->th_seq, sc->sc_irs + 1) && in syncache_chkrst()
691 th->th_seq == sc->sc_irs + 1) { in syncache_chkrst()
708 th->th_seq, sc->sc_irs + 1, sc->sc_wnd); in syncache_chkrst()
716 th->th_seq, sc->sc_irs + 1, sc->sc_wnd); in syncache_chkrst()
761 if (ntohl(th_seq) != sc->sc_iss) in syncache_unreach()
1319 if (SEQ_LEQ(th->th_seq, sc->sc_irs) || in syncache_expand()
1320 SEQ_GT(th->th_seq, sc->sc_irs + sc->sc_wnd)) { in syncache_expand()
1675 sc->sc_irs = th->th_seq; in syncache_add()
1937 th->th_seq = htonl(sc->sc_iss); in syncache_respond()
1939 th->th_seq = htonl(sc->sc_iss + 1); in syncache_respond()
[all …]
H A Dtcp_timewait.c449 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) { in tcp_twcheck()
468 th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK); in tcp_twcheck()
496 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck()
505 th->th_seq != tw->rcv_nxt || th->th_ack != tw->snd_nxt) { in tcp_twcheck()
671 th->th_seq = htonl(tw->snd_nxt); in tcp_twrespond()
H A Dtcpip.h52 #define ti_seq ti_t.th_seq
H A Dtcp_var.h1128 th->th_seq = ntohl(th->th_seq); in tcp_fields_to_host()
1138 th->th_seq = htonl(th->th_seq); in tcp_fields_to_net()
H A Dtcp_debug.c174 seq = th->th_seq; in tcp_trace()
/freebsd-13.1/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c628 todrop = tp->rcv_nxt - th->th_seq; in _ctf_drop_checks()
632 th->th_seq++; in _ctf_drop_checks()
672 tcp_update_sack_list(tp, th->th_seq, in _ctf_drop_checks()
673 th->th_seq + todrop); in _ctf_drop_checks()
676 th->th_seq += todrop; in _ctf_drop_checks()
701 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in _ctf_drop_checks()
783 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in ctf_process_rst()
791 (tp->last_ack_sent == th->th_seq) || in ctf_process_rst()
792 (tp->rcv_nxt == th->th_seq)) { in ctf_process_rst()
842 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in ctf_challenge_ack()
[all …]
/freebsd-13.1/usr.sbin/ppp/
H A Dslcompress.c316 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp()
518 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp()
523 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp()
540 DECODEL(th->th_seq) in sl_uncompress_tcp()
550 cs->cs_ip.ip_id, (u_long)ntohl(th->th_seq)); in sl_uncompress_tcp()
/freebsd-13.1/sys/net/
H A Dslcompress.c302 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp()
531 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core()
536 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core()
551 DECODEL(th->th_seq) in sl_uncompress_tcp_core()
/freebsd-13.1/sys/netpfil/pf/
H A Dpf_syncookies.c290 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send()
307 seq = ntohl(pd->hdr.tcp.th_seq) - 1; in pf_syncookie_validate()
460 hash = pf_syncookie_mac(pd, cookie, ntohl(pd->hdr.tcp.th_seq)); in pf_syncookie_generate()
482 seq = ntohl(pd->hdr.tcp.th_seq) - 1; in pf_syncookie_recreate_syn()
/freebsd-13.1/sbin/ipf/ipsend/
H A Diptests.c918 t->th_seq = htonl(1); in ip_test5()
950 t->th_seq = htonl(0); in ip_test5()
956 t->th_seq = htonl(1); in ip_test5()
962 t->th_seq = htonl(0x7fffffff); in ip_test5()
968 t->th_seq = htonl(0x80000000); in ip_test5()
974 t->th_seq = htonl(0xc0000000); in ip_test5()
980 t->th_seq = htonl(0xffffffff); in ip_test5()
1035 t->th_seq = htonl(0); in ip_test5()
1041 t->th_seq = htonl(0x7fff); in ip_test5()
1107 t->th_seq = htonl(tcb.snd_nxt); in ip_test5()
[all …]
H A Dresend.c57 (u_long)t->th_seq, (u_long)t->th_ack); in dumppacket()
/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dtcp.h43 uint32_t th_seq; /* (u) */ member
/freebsd-13.1/contrib/tcpdump/
H A Dtcp.h44 tcp_seq th_seq; /* sequence number */ member
/freebsd-13.1/sys/netinet/libalias/
H A Dalias_irc.c441 delta = GetDeltaSeqOut(tc->th_seq, lnk); in AliasHandleIrcOut()
443 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
H A Dalias_smedia.c397 delta = GetDeltaSeqOut(tc->th_seq, lnk); in alias_rtsp_out()
399 tc->th_seq, tc->th_off); in alias_rtsp_out()
H A Dalias_ftp.c736 delta = GetDeltaSeqOut(tc->th_seq, lnk); in NewFtpMessage()
738 pip->ip_len, tc->th_seq, tc->th_off); in NewFtpMessage()
H A Dalias.c1166 delta = GetDeltaSeqOut(tc->th_seq, lnk); in TcpAliasOut()
1168 accumulate += twowords(&tc->th_seq); in TcpAliasOut()
1169 tc->th_seq = htonl(ntohl(tc->th_seq) + delta); in TcpAliasOut()
1170 accumulate -= twowords(&tc->th_seq); in TcpAliasOut()
/freebsd-13.1/sys/netpfil/ipfilter/netinet/
H A Dip_rcmd_pxy.c174 (tcp->th_seq != rc->rcmd_portseq)) in ipf_p_rcmd_portmsg()
200 rc->rcmd_portseq = tcp->th_seq; in ipf_p_rcmd_portmsg()
H A Dip_pptp_pxy.c288 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 Dip_proxy.c1142 seq1 = (u_32_t)ntohl(tcp->th_seq); in ipf_proxy_fixseqack()
1160 tcp->th_seq = htonl(seq1); in ipf_proxy_fixseqack()
1195 seq1 = ntohl(tcp->th_seq); in ipf_proxy_fixseqack()
1212 tcp->th_seq = htonl(seq1); in ipf_proxy_fixseqack()
1256 (u_32_t)ntohl(tcp->th_seq), (u_32_t)ntohl(tcp->th_ack)); in ipf_proxy_fixseqack()
/freebsd-13.1/sys/dev/sfxge/
H A Dsfxge_rx.c531 unsigned th_seq, pkt_length; in sfxge_lro_try_merge() local
548 th_seq = ntohl(th->th_seq); in sfxge_lro_try_merge()
566 if (__predict_false(th_seq != c->next_seq)) { in sfxge_lro_try_merge()
571 c->next_seq = th_seq + data_length; in sfxge_lro_try_merge()
575 c->next_seq = th_seq + data_length; in sfxge_lro_try_merge()
/freebsd-13.1/sbin/ipf/libipf/
H A Dipft_tx.c285 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseline()
456 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseipv6()
/freebsd-13.1/cddl/lib/libdtrace/
H A Dtcp.d266 tcp_seq = p == NULL ? -1 : ntohl(p->th_seq);
285 tcp_seq = p == NULL ? -1 : p->th_seq;

123