Home
last modified time | relevance | path

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

12

/netbsd-src/sys/netinet/
H A Dtcp_input.c1000 if (tiflags & TH_SYN) { in tcp_vtw_input()
1001 tiflags &= ~TH_SYN; in tcp_vtw_input()
1082 if ((tiflags & TH_SYN) && in tcp_vtw_input()
1172 if (tiflags & TH_SYN)
1359 (th->th_flags & TH_SYN) == 0) { in tcp_input()
1407 (tiflags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN) { in tcp_input()
1440 (tiflags & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN) { in tcp_input()
1488 if ((tiflags & TH_SYN) in tcp_input()
[all...]
H A Dtcp_fsm.h74 TH_SYN, /* SYN_SENT */
75 TH_SYN|TH_ACK, /* SYN_RCVD */
H A Dtcp_output.c990 if (flags & (TH_SYN|TH_FIN|TH_RST)) in tcp_output()
1066 if (flags & TH_SYN) { in tcp_output()
1108 ((flags & (TH_SYN|TH_ACK)) == TH_SYN || in tcp_output()
1249 else if (flags & (TH_SYN|TH_FIN|TH_RST)) in tcp_output()
1360 if (len || (flags & (TH_SYN|TH_FIN)) || in tcp_output()
1472 if (flags & (TH_SYN|TH_FIN)) in tcp_output()
H A Dtcp.h65 #define TH_SYN 0x02 /* Synchronization: New conn with dst port */ macro
/netbsd-src/sys/net/npf/
H A Dnpf_state_tcp.c109 CTASSERT(TH_SYN == 0x02); in npf_tcpfl2case()
127 i = (tcpfl & (TH_SYN | TH_FIN)) | ((tcpfl & TH_ACK) >> 2); in npf_tcpfl2case()
325 if (tcpfl & TH_SYN) { in npf_tcp_inwindow()
377 if (tcpfl & TH_SYN) { in npf_tcp_inwindow()
H A Dnpf_ext_normalize.c170 (th->th_flags & TH_SYN) == 0) { in npf_normalize()
H A Dnpf_sendpkt.c171 if (oth->th_flags & TH_SYN) { in npf_return_tcp()
/netbsd-src/usr.sbin/npf/npftest/
H A Dnpfstream.c60 if (th->th_flags & TH_SYN) { in process_tcpip()
82 forw ? ">" : "<", (th->th_flags & (TH_SYN | TH_ACK | TH_FIN)), in process_tcpip()
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/
H A Dip_compat.h54 #ifndef TH_SYN
55 # define TH_SYN 0x02 macro
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dflags.c24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
H A Dprintpacket.c92 if (tcp->th_flags & TH_SYN)
/netbsd-src/external/bsd/ipf/dist/ipsend/
H A Diptests.c980 for (i = 0; i <= (TH_URG|TH_ACK|TH_PUSH|TH_RST|TH_SYN|TH_FIN);
992 t->th_flags = TH_SYN;
1078 t->th_flags = TH_SYN;
1197 t->th_flags = TH_SYN;
1235 t->th_flags = TH_SYN;
1277 t->th_flags = TH_SYN;
H A Dlsock.c253 ti->ti_flags = TH_SYN;
H A Dipsend.c403 tcp->th_flags |= TH_SYN;
H A Dip.c282 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_state.c1378 if ((fin->fin_flx & FI_OOW) && !(fin->fin_tcpf & TH_SYN)) { in ipf_state_add()
1577 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_state_add()
1586 TH_SYN && in ipf_state_add()
1598 if ((tcp->th_flags & TH_OPENING) == TH_SYN) in ipf_state_add()
1990 if ((tcp->th_flags & TH_OPENING) == TH_SYN) { in ipf_state_tcp()
2034 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp()
2044 } else if (flags == TH_SYN) { in ipf_state_tcp()
2131 if (tcpflags & TH_SYN) in ipf_state_tcpinwindow()
2143 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0); in ipf_state_tcpinwindow()
2156 if (!(tcpflags & TH_SYN) && (fdata->td_winflags & TCP_WSCALE_FIRST)) { in ipf_state_tcpinwindow()
[all …]
H A Dip_compat.h818 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
1119 #ifndef TH_SYN
1120 # define TH_SYN 0x02 macro
1135 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
H A Dip_rcmd_pxy.c264 tcp2->th_flags = TH_SYN; in ipf_p_rcmd_portmsg()
H A Dip_state.h141 #define TH_OPENING (TH_SYN|TH_ACK)
/netbsd-src/dist/pf/libexec/tftp-proxy/
H A Dfilter.c301 pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0); in prepare_rule()
303 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()
/netbsd-src/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_state_test.c24 #define S TH_SYN
/netbsd-src/sys/dist/pf/net/
H A Dpf_osfp.c133 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
H A Dpf.c1305 if (f & TH_SYN)
3453 if (th->th_flags & TH_SYN)
3543 if ((th->th_flags & (TH_SYN|TH_ACK)) ==
3544 TH_SYN && r->keep_state == PF_STATE_MODULATE) {
3554 if (th->th_flags & TH_SYN) {
3700 (th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN &&
3724 TH_SYN|TH_ACK, 0, s->src.mss, 0, 1, 0, NULL, NULL);
3858 if (th->th_flags & TH_SYN) {
3866 TH_SYN|TH_ACK, 0, (*state)->src.mss, 0, 1,
3893 if (((th->th_flags & (TH_SYN|TH_ACK)) != TH_ACK) ||
[all …]
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_build.c482 npfctl_bpf_tcpfl(bc, TH_SYN, TH_SYN | TH_ACK | TH_FIN | TH_RST); in npfctl_build_code()
/netbsd-src/usr.sbin/trpt/
H A Dtrpt.c485 pf(TH_SYN, "SYN"); in tcp_trace()

12