Home
last modified time | relevance | path

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

123

/freebsd-14.2/sys/netinet/
H A Dtcp_reass.c352 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 Dtcp_timewait.c229 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 Dtcp_input.c1750 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 Dtcp_syncache.c683 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 Dtcpip.h51 #define ti_seq ti_t.th_seq
H A Dtcp_lro_hpts.c80 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 Dtcp_var.h1586 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 Drack_bbr_common.c582 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 Dslcompress.c314 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 Dslcompress.c301 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 Diptests.c917 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 Dresend.c56 (u_long)t->th_seq, (u_long)t->th_ack); in dumppacket()
/freebsd-14.2/sys/netpfil/pf/
H A Dpf_syncookies.c301 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 Dtcp.h41 uint32_t th_seq; /* (u) */ member
/freebsd-14.2/contrib/tcpdump/
H A Dtcp.h43 nd_uint32_t th_seq; /* sequence number */ member
/freebsd-14.2/sys/netinet/libalias/
H A Dalias_irc.c439 delta = GetDeltaSeqOut(tc->th_seq, lnk); in AliasHandleIrcOut()
441 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
H A Dalias_smedia.c395 delta = GetDeltaSeqOut(tc->th_seq, lnk); in alias_rtsp_out()
397 tc->th_seq, tc->th_off); in alias_rtsp_out()
H A Dalias_ftp.c734 delta = GetDeltaSeqOut(tc->th_seq, lnk); in NewFtpMessage()
736 pip->ip_len, tc->th_seq, tc->th_off); in NewFtpMessage()
H A Dalias.c1163 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 Dip_rcmd_pxy.c172 (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 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.c1141 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 Dsfxge_rx.c529 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 Dipft_tx.c284 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 Dtcp.d264 tcp_seq = p == NULL ? -1 : ntohl(p->th_seq);
283 tcp_seq = p == NULL ? -1 : p->th_seq;

123