Searched refs:TH_SYN (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-12-stable/contrib/ipfilter/lib/
H A Dflags.c24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
H A Dtcp_flags.c43 if (tcpf == TH_SYN)
H A Dprintpacket.c92 if (tcp->th_flags & TH_SYN)
/freebsd-12-stable/sys/netinet/
H A Dtcp_fsm.h84 * TH_ACK,TH_SYN,TH_FIN) are totally determined by state, with the proviso
91 TH_SYN, /* 2, SYN_SENT */
92 TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
H A Dtcp.h67 #define TH_SYN 0x02 macro
75 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
H A Dtcp_output.c141 KASSERT(((len) == 0 && ((th_flags) & (TH_SYN | TH_FIN)) == 0) ||\
336 flags |= TH_SYN;
425 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) {
427 flags &= ~TH_SYN;
434 flags &= ~TH_SYN;
443 if ((flags & TH_SYN) && (tp->t_flags & TF_NOOPT)) {
461 (((flags & TH_SYN) && (tp->t_rxtshift > 0)) ||
549 ipoptlen == 0 && !(flags & TH_SYN))
689 ((flags & TH_SYN) && (tp->t_flags & TF_NEEDSYN) == 0))
780 if (flags & TH_SYN) {
[all...]
H A Dtcp_timewait.c400 KASSERT(to != NULL || (thflags & (TH_SYN | TH_ACK)) == TH_SYN,
439 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) {
465 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0);
H A Dtcp_input.c888 if ((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) ||
898 if ((V_blackhole == 1 && (thflags & TH_SYN)) ||
979 (thflags & TH_SYN) ? TO_SYN : 0);
1018 if (!((tp->t_state == TCPS_ESTABLISHED && (thflags & TH_SYN) == 0) ||
1019 (tp->t_state == TCPS_LISTEN && (thflags & TH_SYN) &&
1080 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) {
1181 if ((thflags & TH_SYN) == 0) {
1230 KASSERT(thflags & (TH_SYN),
1231 ("%s: Listen socket: TH_SYN not set", __func__));
1550 if ((thflags & (TH_SYN | TH_FI
[all...]
H A Dtcp_syncache.c501 syncache_respond(sc, sch, NULL, TH_SYN|TH_ACK);
565 if (th->th_flags & (TH_ACK|TH_SYN|TH_FIN)) {
1016 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK,
1334 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN,
1498 if (syncache_respond(sc, sch, m, TH_SYN|TH_ACK) == 0) {
1658 if (syncache_respond(sc, sch, m, TH_SYN|TH_ACK) == 0) {
1792 if (flags & TH_SYN)
1803 if ((flags & TH_SYN) && (sc->sc_flags & SCF_ECN)) {
1812 if (flags & TH_SYN) {
[all...]
/freebsd-12-stable/contrib/tcpdump/
H A Dprint-mptcp.c181 if (!(opt_len == 12 && (flags & TH_SYN)) &&
182 !(opt_len == 20 && (flags & (TH_SYN | TH_ACK)) == TH_ACK))
205 if (!(opt_len == 12 && (flags & TH_SYN)) &&
206 !(opt_len == 16 && (flags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) &&
249 if (flags & TH_SYN)
H A Dtcp.h57 #define TH_SYN 0x02 macro
H A Dprint-cnfp.c225 flags & TH_SYN ? "S" : "",
321 flags & TH_SYN ? "S" : "",
417 flags & TH_SYN ? "S" : "",
H A Dprint-tcp.c106 { TH_SYN, "S" },
283 if (!th->nxt || (flags & TH_SYN)) {
334 if (!th->nxt || (flags & TH_SYN)) {
401 if (ndo->ndo_vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) {
/freebsd-12-stable/contrib/pf/tftp-proxy/
H A Dfilter.c310 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0);
312 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0);
314 pfrule.flags = (proto == IPPROTO_TCP ? TH_SYN : NULL);
316 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL);
/freebsd-12-stable/usr.sbin/ppp/
H A Dtcpmss.c115 if (!(tc->th_flags & TH_SYN))
/freebsd-12-stable/cddl/lib/libdtrace/
H A Dtcp.d87 #pragma D binding "1.6.3" TH_SYN
88 inline uint8_t TH_SYN = 0x02;
328 flags & TH_SYN ? "SYN" :
/freebsd-12-stable/contrib/ipfilter/ipsend/
H A Diptests.c948 for (i = 0; i <= (TH_URG|TH_ACK|TH_PUSH|TH_RST|TH_SYN|TH_FIN);
960 t->th_flags = TH_SYN;
1046 t->th_flags = TH_SYN;
1165 t->th_flags = TH_SYN;
1203 t->th_flags = TH_SYN;
1245 t->th_flags = TH_SYN;
H A Dipsend.c378 tcp->th_flags |= TH_SYN;
/freebsd-12-stable/contrib/pf/ftp-proxy/
H A Dfilter.c302 pfrule.flags = TH_SYN;
303 pfrule.flagset = (TH_SYN|TH_ACK);
/freebsd-12-stable/sys/netinet/tcp_stacks/
H A Drack.c1762 if (thflags & TH_SYN) {
1763 thflags &= ~TH_SYN;
3449 if (th_flags & (TH_SYN | TH_FIN)) {
3456 if (th_flags & TH_SYN)
5389 if (!(thflags & TH_SYN)) {
5434 thflags &= ~TH_SYN;
5541 if ((thflags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) {
5544 } else if (thflags & TH_SYN) {
5567 if (thflags & TH_SYN) {
[all...]
H A Drack_bbr_common.c462 if (thflags & TH_SYN) {
463 thflags &= ~TH_SYN;
/freebsd-12-stable/sys/contrib/ipfilter/netinet/
H A Dip_compat.h714 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
834 #ifndef TH_SYN
835 # define TH_SYN 0x02 macro
850 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
H A Dip_state.c1406 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) {
1605 ((tcp->th_flags & TH_SYN) ? 1 : 0) +
1614 TH_SYN &&
1628 if ((tcp->th_flags & TH_OPENING) == TH_SYN)
2027 if ((tcp->th_flags & TH_OPENING) == TH_SYN) {
2071 if (flags == (TH_SYN|TH_ACK)) {
2083 } else if (flags == TH_SYN) {
2177 if (tcpflags & TH_SYN)
2189 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0);
2202 if (!(tcpflags & TH_SYN)
[all...]
/freebsd-12-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c206 (args->f_id._flags & TH_SYN) == 0)
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_osfp.c108 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN)

Completed in 271 milliseconds

123