Home
last modified time | relevance | path

Searched refs:TH_ACK (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-13.1/sys/netinet/
H A Dtcp_fsm.h89 TH_RST|TH_ACK, /* 0, CLOSED */
92 TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
93 TH_ACK, /* 4, ESTABLISHED */
94 TH_ACK, /* 5, CLOSE_WAIT */
95 TH_FIN|TH_ACK, /* 6, FIN_WAIT_1 */
96 TH_FIN|TH_ACK, /* 7, CLOSING */
97 TH_FIN|TH_ACK, /* 8, LAST_ACK */
98 TH_ACK, /* 9, FIN_WAIT_2 */
99 TH_ACK, /* 10, TIME_WAIT */
H A Dtcp_timewait.c355 tcp_twrespond(tw, TH_ACK); in tcp_twstart()
409 KASSERT(to != NULL || (thflags & (TH_SYN | TH_ACK)) == TH_SYN, in tcp_twcheck()
433 if ((thflags & TH_ACK) == 0) in tcp_twcheck()
459 if (th->th_flags & TH_ACK) { in tcp_twcheck()
468 th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK); in tcp_twcheck()
478 if ((thflags & TH_ACK) == 0) in tcp_twcheck()
504 if (thflags != TH_ACK || tlen != 0 || in tcp_twcheck()
507 tcp_twrespond(tw, TH_ACK); in tcp_twcheck()
651 if (tw->t_recent && flags == TH_ACK) { in tcp_twrespond()
729 if (flags & TH_ACK) in tcp_twrespond()
H A Dtcp_input.c1105 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port()
1213 if (thflags & TH_ACK) { in tcp_input_with_port()
1685 if (!(thflags & TH_ACK) && in tcp_do_segment()
1794 (thflags & (TH_SYN|TH_FIN|TH_RST|TH_URG|TH_ACK)) == TH_ACK && in tcp_do_segment()
2006 if ((thflags & TH_ACK) && in tcp_do_segment()
2020 if ((thflags & (TH_SYN|TH_ACK)) == (TH_SYN|TH_ACK)) { in tcp_do_segment()
2050 if ((thflags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) { in tcp_do_segment()
2062 if (thflags & TH_ACK) { in tcp_do_segment()
2161 if (thflags & TH_ACK) in tcp_do_segment()
2258 tp->snd_nxt, TH_ACK); in tcp_do_segment()
[all …]
H A Dtcp.h70 #define TH_ACK 0x10 macro
75 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
H A Dtcp_syncache.c536 syncache_respond(sc, NULL, TH_SYN|TH_ACK); in syncache_timer()
626 if (th->th_flags & (TH_ACK|TH_SYN|TH_FIN)) { in syncache_chkrst()
709 syncache_respond(sc, m, TH_ACK); in syncache_chkrst()
1096 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand()
1423 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add()
1600 if (syncache_respond(sc, m, TH_SYN|TH_ACK) == 0) { in syncache_add()
1776 if (syncache_respond(sc, m, TH_SYN|TH_ACK) == 0) { in syncache_add()
H A Dtcp_lro.c1011 if ((th->th_flags & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1055 if ((th->th_flags & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1071 ((th->th_flags & TH_ACK) != in tcp_lro_condense()
1072 (le->flags & TH_ACK)) || in tcp_lro_condense()
1243 if ((th->th_flags & ~(TH_ACK | TH_PUSH | TH_ECE | TH_CWR)) != 0) in tcp_lro_ack_valid()
1250 if (!(th->th_flags & TH_ACK)) in tcp_lro_ack_valid()
/freebsd-13.1/contrib/tcpdump/
H A Dprint-mptcp.c182 !(opt_len == 20 && (flags & (TH_SYN | TH_ACK)) == TH_ACK)) in mp_capable_print()
206 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) && in mp_join_print()
207 !(opt_len == 24 && (flags & TH_ACK))) in mp_join_print()
H A Dprint-cnfp.c228 flags & TH_ACK ? "A" : "", in cnfp_v1_print()
324 flags & TH_ACK ? "A" : "", in cnfp_v5_print()
420 flags & TH_ACK ? "A" : "", in cnfp_v6_print()
H A Dtcp.h60 #define TH_ACK 0x10 macro
H A Dprint-tcp.c109 { TH_ACK, "." },
244 if (!ndo->ndo_Sflag && (flags & TH_ACK)) { in tcp_print()
409 if (flags & TH_ACK) { in tcp_print()
/freebsd-13.1/sbin/ipf/libipf/
H A Dflags.c24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
H A Dprintpacket.c96 if (tcp->th_flags & TH_ACK) in printpacket()
/freebsd-13.1/cddl/lib/libdtrace/
H A Dtcp.d93 #pragma D binding "1.6.3" TH_ACK
94 inline uint8_t TH_ACK = 0x10; variable
331 flags & TH_ACK ? "ACK" :
/freebsd-13.1/sys/netpfil/ipfilter/netinet/
H A Dip_state.c2032 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp()
2178 } else if (((tcpflags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) && in ipf_state_tcpinwindow()
4013 ((tcpflags & TH_ACKMASK) == TH_ACK)) { in ipf_tcp_age()
4054 } else if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == in ipf_tcp_age()
4055 TH_ACK) { in ipf_tcp_age()
4083 if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == TH_ACK) { in ipf_tcp_age()
4115 } else if ((tcpflags & TH_ACKMASK) == TH_ACK) { in ipf_tcp_age()
4155 } else if (tcpflags & TH_ACK) { in ipf_tcp_age()
4199 if ((tcpflags & TH_ACK) && in ipf_tcp_age()
4226 if ((tcpflags & (TH_FIN|TH_ACK)) == TH_ACK) { in ipf_tcp_age()
[all …]
H A Dip_compat.h706 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
835 #ifndef TH_ACK
836 # define TH_ACK 0x10 macro
842 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
H A Dip_state.h138 #define TH_OPENING (TH_SYN|TH_ACK)
/freebsd-13.1/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c742 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in __ctf_do_dropafterack()
819 tp->rcv_nxt, tp->snd_nxt, TH_ACK); in ctf_process_rst()
850 tp->snd_nxt, TH_ACK); in ctf_challenge_ack()
/freebsd-13.1/contrib/pf/tftp-proxy/
H A Dfilter.c312 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()
316 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); in prepare_rule()
/freebsd-13.1/sys/net/
H A Dslcompress.c176 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp()
/freebsd-13.1/usr.sbin/ppp/
H A Dslcompress.c186 if ((th->th_flags & (TH_SYN | TH_FIN | TH_RST | TH_ACK)) != TH_ACK) { in sl_compress_tcp()
/freebsd-13.1/sys/netpfil/pf/
H A Dpf.c2012 TH_RST|TH_ACK, 0, 0, 0, 1, s->tag); in pf_unlink_state()
2320 if (f & TH_ACK) in pf_print_flags()
4245 TH_SYN|TH_ACK, 0, s->src.mss, 0, 1, 0); in pf_create_state()
4517 if ((th->th_flags & TH_ACK) == 0) { in pf_tcp_track_full()
4521 (th->th_flags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) || in pf_tcp_track_full()
4593 if (th->th_flags & TH_ACK) { in pf_tcp_track_full()
4764 if (th->th_flags & TH_ACK) { in pf_tcp_track_sloppy()
4847 } else if ((th->th_flags & (TH_ACK|TH_RST|TH_FIN)) != TH_ACK || in pf_synproxy()
4862 if (((th->th_flags & (TH_SYN|TH_ACK)) != TH_ACK) || in pf_synproxy()
4879 (TH_SYN|TH_ACK)) || in pf_synproxy()
[all …]
H A Dpf_syncookies.c290 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send()
/freebsd-13.1/sbin/ipf/ipsend/
H A Diptests.c932 for (i = 0; i <= (TH_URG|TH_ACK|TH_PUSH|TH_RST|TH_SYN|TH_FIN); in ip_test5()
987 t->th_flags = TH_ACK; in ip_test5()
1100 t->th_flags = TH_ACK|TH_URG; in ip_test5()
1127 t->th_flags = TH_ACK; in ip_test5()
H A Dipsend.c376 tcp->th_flags |= TH_ACK; in main()
/freebsd-13.1/usr.sbin/trpt/
H A Dtrpt.c401 pf(TH_ACK, "ACK"); in tcp_trace()

12