Home
last modified time | relevance | path

Searched refs:TH_SYN (Results 1 – 25 of 55) sorted by relevance

123

/freebsd-12-stable/contrib/tcpdump/
Dprint-mptcp.c181 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_capable_print()
182 !(opt_len == 20 && (flags & (TH_SYN | TH_ACK)) == TH_ACK)) in mp_capable_print()
205 if (!(opt_len == 12 && (flags & TH_SYN)) && in mp_join_print()
206 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) && in mp_join_print()
249 if (flags & TH_SYN) in mp_dss_print()
Dprint-cnfp.c225 flags & TH_SYN ? "S" : "", in cnfp_v1_print()
321 flags & TH_SYN ? "S" : "", in cnfp_v5_print()
417 flags & TH_SYN ? "S" : "", in cnfp_v6_print()
Dtcp.h57 #define TH_SYN 0x02 macro
Dprint-tcp.c106 { TH_SYN, "S" },
283 if (!th->nxt || (flags & TH_SYN)) { in tcp_print()
334 if (!th->nxt || (flags & TH_SYN)) { in tcp_print()
401 if (ndo->ndo_vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) { in tcp_print()
/freebsd-12-stable/sys/netinet/
Dtcp_output.c141 KASSERT(((len) == 0 && ((th_flags) & (TH_SYN | TH_FIN)) == 0) ||\
339 flags |= TH_SYN; in tcp_output()
428 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) { in tcp_output()
430 flags &= ~TH_SYN; in tcp_output()
437 flags &= ~TH_SYN; in tcp_output()
446 if ((flags & TH_SYN) && (tp->t_flags & TF_NOOPT)) { in tcp_output()
464 (((flags & TH_SYN) && (tp->t_rxtshift > 0)) || in tcp_output()
552 ipoptlen == 0 && !(flags & TH_SYN)) in tcp_output()
692 ((flags & TH_SYN) && (tp->t_flags & TF_NEEDSYN) == 0)) in tcp_output()
783 if (flags & TH_SYN) { in tcp_output()
[all …]
Dtcp_fsm.h91 TH_SYN, /* 2, SYN_SENT */
92 TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
Dtcp_input.c888 if ((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input()
898 if ((V_blackhole == 1 && (thflags & TH_SYN)) || in tcp_input()
979 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input()
1018 if (!((tp->t_state == TCPS_ESTABLISHED && (thflags & TH_SYN) == 0) || in tcp_input()
1019 (tp->t_state == TCPS_LISTEN && (thflags & TH_SYN) && in tcp_input()
1080 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input()
1181 if ((thflags & TH_SYN) == 0) { in tcp_input()
1230 KASSERT(thflags & (TH_SYN), in tcp_input()
1550 if ((thflags & (TH_SYN | TH_FIN | TH_RST)) != 0 || in tcp_do_segment()
1567 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment()
[all …]
Dtcp.h67 #define TH_SYN 0x02 macro
78 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
Dtcp_timewait.c400 KASSERT(to != NULL || (thflags & (TH_SYN | TH_ACK)) == TH_SYN, in tcp_twcheck()
439 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) { in tcp_twcheck()
465 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck()
Dtcp_syncache.c501 syncache_respond(sc, sch, NULL, TH_SYN|TH_ACK); in syncache_timer()
1004 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand()
1322 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add()
1486 if (syncache_respond(sc, sch, m, TH_SYN|TH_ACK) == 0) { in syncache_add()
1646 if (syncache_respond(sc, sch, m, TH_SYN|TH_ACK) == 0) { in syncache_add()
1780 if (flags & TH_SYN) in syncache_respond()
1791 if ((flags & TH_SYN) && (sc->sc_flags & SCF_ECN)) { in syncache_respond()
1800 if (flags & TH_SYN) { in syncache_respond()
/freebsd-12-stable/contrib/pf/tftp-proxy/
Dfilter.c310 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0); in prepare_rule()
312 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()
314 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : NULL); in prepare_rule()
316 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); in prepare_rule()
/freebsd-12-stable/sbin/ipf/libipf/
Dflags.c24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
Dtcp_flags.c40 if (tcpf == TH_SYN) in tcp_flags()
Dprintpacket.c90 if (tcp->th_flags & TH_SYN) in printpacket()
/freebsd-12-stable/sys/netinet/tcp_stacks/
Drack.c1762 if (thflags & TH_SYN) { in rack_drop_checks()
1763 thflags &= ~TH_SYN; in rack_drop_checks()
3449 if (th_flags & (TH_SYN | TH_FIN)) { in rack_log_output()
3456 if (th_flags & TH_SYN) in rack_log_output()
5389 if (!(thflags & TH_SYN)) { in rack_do_syn_sent()
5434 thflags &= ~TH_SYN; in rack_do_syn_sent()
5541 if ((thflags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) { in rack_do_syn_recv()
5544 } else if (thflags & TH_SYN) { in rack_do_syn_recv()
5567 if (thflags & TH_SYN) { in rack_do_syn_recv()
5611 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in rack_do_syn_recv()
[all …]
/freebsd-12-stable/cddl/lib/libdtrace/
Dtcp.d87 #pragma D binding "1.6.3" TH_SYN
88 inline uint8_t TH_SYN = 0x02; variable
328 flags & TH_SYN ? "SYN" :
/freebsd-12-stable/sbin/ipf/ipsend/
Diptests.c932 for (i = 0; i <= (TH_URG|TH_ACK|TH_PUSH|TH_RST|TH_SYN|TH_FIN); in ip_test5()
944 t->th_flags = TH_SYN; in ip_test5()
1030 t->th_flags = TH_SYN; in ip_test5()
1149 t->th_flags = TH_SYN; in ip_test5()
1187 t->th_flags = TH_SYN; in ip_test5()
1229 t->th_flags = TH_SYN; in ip_test5()
/freebsd-12-stable/usr.sbin/ppp/
Dtcpmss.c115 if (!(tc->th_flags & TH_SYN)) in MSSFixup()
/freebsd-12-stable/sys/netpfil/ipfilter/netinet/
Dip_compat.h706 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
826 #ifndef TH_SYN
827 # define TH_SYN 0x02 macro
842 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
Dip_state.c1362 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) { in ipf_state_add()
1561 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_state_add()
1570 TH_SYN && in ipf_state_add()
1584 if ((tcp->th_flags & TH_OPENING) == TH_SYN) in ipf_state_add()
1976 if ((tcp->th_flags & TH_OPENING) == TH_SYN) { in ipf_state_tcp()
2020 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp()
2032 } else if (flags == TH_SYN) { in ipf_state_tcp()
2121 if (tcpflags & TH_SYN) in ipf_state_tcpinwindow()
2133 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0); in ipf_state_tcpinwindow()
2146 if (!(tcpflags & TH_SYN) && (fdata->td_winflags & TCP_WSCALE_FIRST)) { in ipf_state_tcpinwindow()
[all …]
/freebsd-12-stable/sys/netpfil/pf/
Dpf_syncookies.c295 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send()
514 *pd->dport, seq, 0, TH_SYN, wscale, mss, ttl, 0, in pf_syncookie_recreate_syn()
Dpf.c2348 if (f & TH_SYN) in pf_print_flags()
3027 if (th->th_flags & TH_SYN) in pf_return()
4125 if ((th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN && in pf_create_state()
4136 if (th->th_flags & TH_SYN) { in pf_create_state()
4252 if (pd->proto == IPPROTO_TCP && (th->th_flags & (TH_SYN|TH_ACK)) == in pf_create_state()
4253 TH_SYN && r->keep_state == PF_STATE_SYNPROXY) { in pf_create_state()
4281 TH_SYN|TH_ACK, 0, s->src.mss, 0, 1, 0); in pf_create_state()
4459 if (src->wscale && dst->wscale && !(th->th_flags & TH_SYN)) { in pf_tcp_track_full()
4498 if (th->th_flags & TH_SYN) { in pf_tcp_track_full()
4547 if (th->th_flags & TH_SYN) in pf_tcp_track_full()
[all …]
Dpf_osfp.c108 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
/freebsd-12-stable/contrib/pf/ftp-proxy/
Dfilter.c300 pfrule.flags = TH_SYN; in prepare_rule()
301 pfrule.flagset = (TH_SYN|TH_ACK); in prepare_rule()
/freebsd-12-stable/sys/netpfil/ipfw/pmod/
Dtcpmod.c206 (args->f_id._flags & TH_SYN) == 0) in ipfw_tcpmod()

123