| /freebsd/sys/netinet/ |
| H A D | tcp_timewait.c | 179 if ((thflags & (TH_SYN | TH_ACK)) == TH_SYN) in tcp_twcheck() 220 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_twcheck() 245 if ((thflags & (TH_SYN | TH_ACK)) == TH_SYN) { in tcp_twcheck() 275 if (tcp_get_flags(th) & TH_SYN) in tcp_twcheck() 310 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck() 318 if ((thflags & (TH_SYN | TH_FIN)) != 0 || tlen != 0 || in tcp_twcheck()
|
| H A D | tcp_output.c | 141 KASSERT(((len) == 0 && ((th_flags) & (TH_SYN | TH_FIN)) == 0) ||\ 361 flags |= TH_SYN; in tcp_default_output() 432 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) { in tcp_default_output() 434 flags &= ~TH_SYN; in tcp_default_output() 441 flags &= ~TH_SYN; in tcp_default_output() 450 if ((flags & TH_SYN) && (tp->t_flags & TF_NOOPT)) { in tcp_default_output() 468 (((flags & TH_SYN) && (tp->t_rxtshift > 0)) || in tcp_default_output() 475 if ((flags & TH_SYN) && !(tp->t_flags & TF_FASTOPEN)) { in tcp_default_output() 564 !(flags & TH_SYN)) in tcp_default_output() 702 ((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 | 837 ((thflags & (TH_ACK|TH_SYN)) == TH_SYN ? in tcp_input_with_port() 917 if (((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input_with_port() 971 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input_with_port() 1040 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port() 1152 if ((thflags & TH_SYN) == 0) { in tcp_input_with_port() 1199 KASSERT(thflags & (TH_SYN), in tcp_input_with_port() 1366 ((V_blackhole == 1 && (thflags & TH_SYN)) || V_blackhole > 1))) && in tcp_input_with_port() 1517 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment() 1573 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_do_segment() 1608 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 | 350 if ((thflags & (TH_SYN | TH_ECE)) == TH_ECE) { in tcp_ecn_input_segment() 571 if ((thflags & TH_SYN) && in tcp_ecn_syncache_respond()
|
| H A D | tcp_syncache.c | 533 if (syncache_respond(sc, TH_SYN|TH_ACK) == 0) { in syncache_timer() 1074 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand() 1421 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add() 1594 if (syncache_respond(sc, TH_SYN|TH_ACK) == 0) { in syncache_add() 1790 if (syncache_respond(sc, TH_SYN|TH_ACK) == 0) { in syncache_add() 1952 if (flags & TH_SYN) in syncache_respond() 1968 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() 356 if (!th->nxt || (flags & TH_SYN)) { in tcp_print() 432 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 | 5906 if (th_flags & (TH_SYN | TH_FIN) && (hintrsm == NULL)) { in bbr_log_output() 5913 if ((th_flags & TH_SYN) && (tp->iss == seq_out)) in bbr_log_output() 5944 if (th_flags & TH_SYN) in bbr_log_output() 8773 if (!(thflags & TH_SYN)) { in bbr_do_syn_sent() 8845 thflags &= ~TH_SYN; in bbr_do_syn_sent() 8971 if ((thflags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) { in bbr_do_syn_recv() 8975 } else if (thflags & TH_SYN) { in bbr_do_syn_recv() 9029 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_syn_recv() 9196 __predict_true((thflags & (TH_SYN | TH_FIN | TH_RST | TH_URG | TH_ACK)) == TH_ACK) && in bbr_do_established() 9220 if (thflags & TH_SYN) { in bbr_do_established() [all …]
|
| /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/pf/ |
| H A D | pf_syncookies.c | 298 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send() 517 *pd->dport, seq, 0, TH_SYN, wscale, mss, pd->ttl, in pf_syncookie_recreate_syn()
|
| H A D | pf_osfp.c | 103 if ((tcp_get_flags(tcp) & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
|
| /freebsd/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_state.c | 1360 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) { in ipf_state_add() 1559 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_add() 1568 TH_SYN && in ipf_state_add() 1582 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) in ipf_state_add() 1974 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) { in ipf_state_tcp() 2018 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp() 2030 } else if (flags == TH_SYN) { in ipf_state_tcp() 2119 if (tcpflags & TH_SYN) in ipf_state_tcpinwindow() 2131 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0); in ipf_state_tcpinwindow() 2144 if (!(tcpflags & TH_SYN) 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/usr.sbin/ppp/ |
| H A D | tcpmss.c | 118 if (!(__tcp_get_flags(tc) & TH_SYN)) in MSSFixup()
|
| /freebsd/sbin/ipf/ipsend/ |
| H A D | iptests.c | 936 __tcp_set_flags(t, TH_SYN); in ip_test5() 1022 __tcp_set_flags(t, TH_SYN); in ip_test5() 1141 __tcp_set_flags(t, TH_SYN); in ip_test5() 1179 __tcp_set_flags(t, TH_SYN); in ip_test5() 1221 __tcp_set_flags(t, TH_SYN); in ip_test5()
|
| /freebsd/sys/netpfil/ipfw/pmod/ |
| H A D | tcpmod.c | 206 (args->f_id._flags & TH_SYN) == 0) in ipfw_tcpmod()
|