Home
last modified time | relevance | path

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

123

/trueos/sys/netinet/
HDtcp_output.c299 flags |= TH_SYN; in tcp_output()
387 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) { in tcp_output()
389 flags &= ~TH_SYN; in tcp_output()
398 if ((flags & TH_SYN) && (tp->t_flags & TF_NOOPT)) { in tcp_output()
619 ((flags & TH_SYN) && (tp->t_flags & TF_NEEDSYN) == 0)) in tcp_output()
710 if (flags & TH_SYN) { in tcp_output()
716 if ((flags & TH_SYN) && (tp->t_flags & TF_REQ_SCALE)) { in tcp_output()
722 ((flags & TH_SYN) && (tp->t_flags & TF_REQ_TSTMP))) { in tcp_output()
733 if (flags & TH_SYN) in tcp_output()
990 else if (flags & (TH_SYN|TH_FIN|TH_RST)) in tcp_output()
[all …]
HDtcp_fsm.h88 TH_SYN, /* 2, SYN_SENT */
89 TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
HDtcp.h65 #define TH_SYN 0x02 macro
72 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
HDtcp_input.c751 if ((thflags & (TH_SYN | TH_FIN | TH_RST)) != 0) { in tcp_input()
856 if ((tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input()
866 if ((V_blackhole == 1 && (thflags & TH_SYN)) || in tcp_input()
940 if (thflags & TH_SYN) in tcp_input()
977 if ((thflags & (TH_SYN | TH_FIN | TH_RST)) != 0) in tcp_input()
1053 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input()
1112 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input()
1156 if ((thflags & TH_SYN) == 0) { in tcp_input()
1205 KASSERT(thflags & (TH_SYN), in tcp_input()
1352 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input()
[all …]
HDtcp_timewait.c453 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) { in tcp_twcheck()
468 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck()
HDtcp_syncache.c555 if (th->th_flags & (TH_ACK|TH_SYN|TH_FIN)) { in syncache_chkrst()
953 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand()
1128 KASSERT((th->th_flags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add()
1491 th->th_flags = TH_SYN|TH_ACK; in syncache_respond()
/trueos/contrib/ipfilter/ipsd/Celler/
HDip_compat.h54 #ifndef TH_SYN
55 # define TH_SYN 0x02 macro
/trueos/contrib/pf/tftp-proxy/
HDfilter.c302 pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0); in prepare_rule()
304 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()
306 pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : NULL); in prepare_rule()
308 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); in prepare_rule()
/trueos/contrib/ipfilter/ipsend/.OLD/
HDip_compat.h54 #ifndef TH_SYN
55 # define TH_SYN 0x02 macro
/trueos/contrib/ipfilter/lib/
HDflags.c24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
HDtcp_flags.c43 if (tcpf == TH_SYN)
HDprintpacket.c92 if (tcp->th_flags & TH_SYN)
/trueos/sys/netpfil/ipfw/
HDip_fw_dynamic.c373 u_char flags = pkt->_flags & (TH_FIN | TH_SYN | TH_RST); in lookup_dyn_rule_locked()
375 #define BOTH_SYN (TH_SYN | (TH_SYN << 8)) in lookup_dyn_rule_locked()
383 case TH_SYN: /* opening */ in lookup_dyn_rule_locked()
842 dir = ((flags & (TH_SYN | TH_RST)) == TH_SYN); in ipfw_send_pkt()
901 if (flags & TH_SYN) in ipfw_send_pkt()
952 ipfw_send_pkt(NULL, &(q->id), q->ack_rev - 1, q->ack_fwd, TH_SYN); in ipfw_dyn_send_ka()
/trueos/contrib/tcpdump/
HDtcp.h58 #define TH_SYN 0x02 macro
HDprint-tcp.c99 { TH_SYN, "S" },
361 if (!th->nxt || (flags & TH_SYN)) { in tcp_print()
429 if (vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) { in tcp_print()
HDprint-cnfp.c170 if (flags & TH_SYN) putchar('S'); in cnfp_print()
/trueos/cddl/lib/libdtrace/
HDtcp.d60 #pragma D binding "1.0" TH_SYN
61 inline uint8_t TH_SYN = 0x02; variable
/trueos/contrib/ipfilter/ipsend/
HDiptests.c977 for (i = 0; i <= (TH_URG|TH_ACK|TH_PUSH|TH_RST|TH_SYN|TH_FIN);
989 t->th_flags = TH_SYN;
1075 t->th_flags = TH_SYN;
1194 t->th_flags = TH_SYN;
1232 t->th_flags = TH_SYN;
1274 t->th_flags = TH_SYN;
HDlsock.c251 ti->ti_flags = TH_SYN;
/trueos/usr.sbin/ppp/
HDtcpmss.c113 if (!(tc->th_flags & TH_SYN)) in MSSFixup()
/trueos/contrib/pf/ftp-proxy/
HDfilter.c292 pfr.rule.flags = TH_SYN; in prepare_rule()
293 pfr.rule.flagset = (TH_SYN|TH_ACK); in prepare_rule()
/trueos/sys/contrib/ipfilter/netinet/
HDip_state.c1403 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) {
1602 ((tcp->th_flags & TH_SYN) ? 1 : 0) +
1611 TH_SYN &&
1623 if ((tcp->th_flags & TH_OPENING) == TH_SYN)
2018 if ((tcp->th_flags & TH_OPENING) == TH_SYN) {
2062 if (flags == (TH_SYN|TH_ACK)) {
2072 } else if (flags == TH_SYN) {
2164 if (tcpflags & TH_SYN)
2176 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0);
2189 if (!(tcpflags & TH_SYN) && (fdata->td_winflags & TCP_WSCALE_FIRST)) {
[all …]
HDip_compat.h746 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
1047 #ifndef TH_SYN
1048 # define TH_SYN 0x02 macro
1063 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
/trueos/sys/netpfil/pf/
HDpf_osfp.c96 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
HDpf.c1875 if (f & TH_SYN) in pf_print_flags()
3349 if (th->th_flags & TH_SYN) in pf_test_rule()
3472 if ((th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN && in pf_create_state()
3483 if (th->th_flags & TH_SYN) { in pf_create_state()
3599 if (pd->proto == IPPROTO_TCP && (th->th_flags & (TH_SYN|TH_ACK)) == in pf_create_state()
3600 TH_SYN && r->keep_state == PF_STATE_SYNPROXY) { in pf_create_state()
3628 TH_SYN|TH_ACK, 0, s->src.mss, 0, 1, 0, NULL); in pf_create_state()
3757 if (src->wscale && dst->wscale && !(th->th_flags & TH_SYN)) { in pf_tcp_track_full()
3796 if (th->th_flags & TH_SYN) { in pf_tcp_track_full()
3845 if (th->th_flags & TH_SYN) in pf_tcp_track_full()
[all …]

123