/freebsd/sys/netinet/ |
H A D | tcp_timewait.c | 169 if ((thflags & (TH_SYN | TH_ACK)) == TH_SYN) in tcp_twcheck() 210 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_twcheck() 227 if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) && in tcp_twcheck() 249 if (tcp_get_flags(th) & TH_SYN) in tcp_twcheck() 284 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck()
|
H A D | tcp_output.c | 145 KASSERT(((len) == 0 && ((th_flags) & (TH_SYN | TH_FIN)) == 0) ||\ 364 flags |= TH_SYN; in tcp_default_output() 435 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) { in tcp_default_output() 437 flags &= ~TH_SYN; in tcp_default_output() 444 flags &= ~TH_SYN; in tcp_default_output() 453 if ((flags & TH_SYN) && (tp->t_flags & TF_NOOPT)) { in tcp_default_output() 471 (((flags & TH_SYN) && (tp->t_rxtshift > 0)) || in tcp_default_output() 478 if ((flags & TH_SYN) && !(tp->t_flags & TF_FASTOPEN)) { in tcp_default_output() 567 !(flags & TH_SYN)) in tcp_default_output() 705 ((flags & TH_SYN) && (tp->t_flags & TF_NEEDSYN) == 0)) in tcp_default_output() [all …]
|
H A D | tcp_fsm.h | 74 TH_SYN, /* 2, SYN_SENT */ 75 TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
|
H A D | tcp_input.c | 841 ((thflags & (TH_ACK|TH_SYN)) == TH_SYN ? in tcp_input_with_port() 922 if ((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input_with_port() 1006 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input_with_port() 1075 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port() 1186 if ((thflags & TH_SYN) == 0) { in tcp_input_with_port() 1235 KASSERT(thflags & (TH_SYN), in tcp_input_with_port() 1403 ((V_blackhole == 1 && (thflags & TH_SYN)) || V_blackhole > 1))) && in tcp_input_with_port() 1556 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment() 1613 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_do_segment() 1648 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment() [all …]
|
H A D | tcp.h | 63 #define TH_SYN 0x02 macro 74 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR|TH_AE)
|
H A D | tcp_ecn.c | 351 if ((thflags & (TH_SYN | TH_ECE)) == TH_ECE) { in tcp_ecn_input_segment() 569 if ((thflags & TH_SYN) && in tcp_ecn_syncache_respond()
|
H A D | tcp_syncache.c | 530 if (syncache_respond(sc, NULL, TH_SYN|TH_ACK) == 0) { in syncache_timer() 1062 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand() 1385 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add() 1557 if (syncache_respond(sc, m, TH_SYN|TH_ACK) == 0) { in syncache_add() 1742 if (syncache_respond(sc, m, TH_SYN|TH_ACK) == 0) { in syncache_add() 1899 if (flags & TH_SYN) in syncache_respond() 1915 if (flags & TH_SYN) { in syncache_respond()
|
/freebsd/contrib/tcpdump/ |
H A D | print-mptcp.c | 196 if (!((opt_len == 12 || opt_len == 4) && flags & TH_SYN) && in mp_capable_print() 197 !((opt_len == 20 || opt_len == 22) && (flags & (TH_SYN | TH_ACK)) == in mp_capable_print() 229 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_join_print() 230 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) && in mp_join_print() 274 if (flags & TH_SYN) in mp_dss_print()
|
H A D | print-cnfp.c | 229 flags & TH_SYN ? "S" : "", in cnfp_v1_print() 331 flags & TH_SYN ? "S" : "", in cnfp_v5_print() 433 flags & TH_SYN ? "S" : "", in cnfp_v6_print()
|
H A D | tcp.h | 56 #define TH_SYN 0x02 macro
|
H A D | print-tcp.c | 106 { TH_SYN, "S" }, 292 if (!th->nxt || (flags & TH_SYN)) { in tcp_print() 350 if (!th->nxt || (flags & TH_SYN)) { in tcp_print() 420 if (ndo->ndo_vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) { in tcp_print()
|
/freebsd/contrib/pf/tftp-proxy/ |
H A D | filter.c | 314 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0); in prepare_rule() 316 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule() 318 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : NULL); in prepare_rule() 320 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); in prepare_rule()
|
/freebsd/sbin/ipf/libipf/ |
H A D | flags.c | 26 uint16_t flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
|
H A D | tcp_flags.c | 39 if (tcpf == TH_SYN) in tcp_flags()
|
H A D | printpacket.c | 90 if (tcpflags & TH_SYN) in printpacket()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | tcp.d | 85 #pragma D binding "1.6.3" TH_SYN 86 inline uint16_t TH_SYN = 0x02; variable 328 flags & TH_SYN ? "SYN" :
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | bbr.c | 5913 if (th_flags & (TH_SYN | TH_FIN) && (hintrsm == NULL)) { in bbr_log_output() 5920 if ((th_flags & TH_SYN) && (tp->iss == seq_out)) in bbr_log_output() 5951 if (th_flags & TH_SYN) in bbr_log_output() 8780 if (!(thflags & TH_SYN)) { in bbr_do_syn_sent() 8852 thflags &= ~TH_SYN; in bbr_do_syn_sent() 8978 if ((thflags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) { in bbr_do_syn_recv() 8982 } else if (thflags & TH_SYN) { in bbr_do_syn_recv() 9036 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_syn_recv() 9203 __predict_true((thflags & (TH_SYN | TH_FIN | TH_RST | TH_URG | TH_ACK)) == TH_ACK) && in bbr_do_established() 9227 if (thflags & TH_SYN) { in bbr_do_established() [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_syncookies.c | 300 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send() 519 *pd->dport, seq, 0, TH_SYN, wscale, mss, pd->ttl, in pf_syncookie_recreate_syn()
|
H A D | pf_osfp.c | 106 if ((tcp_get_flags(tcp) & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
|
/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 304 pfrule.flags = TH_SYN; in prepare_rule() 305 pfrule.flagset = (TH_SYN|TH_ACK); in prepare_rule()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_state.c | 1357 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) { in ipf_state_add() 1556 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_add() 1565 TH_SYN && in ipf_state_add() 1579 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) in ipf_state_add() 1971 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) { in ipf_state_tcp() 2015 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp() 2027 } else if (flags == TH_SYN) { in ipf_state_tcp() 2116 if (tcpflags & TH_SYN) in ipf_state_tcpinwindow() 2128 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0); in ipf_state_tcpinwindow() 2141 if (!(tcpflags & TH_SYN) && (fdata->td_winflags & TCP_WSCALE_FIRST)) { in ipf_state_tcpinwindow() [all …]
|
H A D | ip_compat.h | 815 #ifndef TH_SYN 816 # define TH_SYN 0x02 macro 831 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
|
/freebsd/sbin/ipf/ipsend/ |
H A D | iptests.c | 937 __tcp_set_flags(t, TH_SYN); in ip_test5() 1023 __tcp_set_flags(t, TH_SYN); in ip_test5() 1142 __tcp_set_flags(t, TH_SYN); in ip_test5() 1180 __tcp_set_flags(t, TH_SYN); in ip_test5() 1222 __tcp_set_flags(t, TH_SYN); in ip_test5()
|
/freebsd/usr.sbin/ppp/ |
H A D | tcpmss.c | 118 if (!(__tcp_get_flags(tc) & TH_SYN)) in MSSFixup()
|
/freebsd/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 203 (args->f_id._flags & TH_SYN) == 0) in ipfw_tcpmod()
|