/netbsd-src/sys/netinet/ |
H A D | tcp_input.c | 1000 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 D | tcp_fsm.h | 74 TH_SYN, /* SYN_SENT */ 75 TH_SYN|TH_ACK, /* SYN_RCVD */
|
H A D | tcp_output.c | 990 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 D | tcp.h | 65 #define TH_SYN 0x02 /* Synchronization: New conn with dst port */ macro
|
/netbsd-src/sys/net/npf/ |
H A D | npf_state_tcp.c | 109 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 D | npf_ext_normalize.c | 170 (th->th_flags & TH_SYN) == 0) { in npf_normalize()
|
H A D | npf_sendpkt.c | 171 if (oth->th_flags & TH_SYN) { in npf_return_tcp()
|
/netbsd-src/usr.sbin/npf/npftest/ |
H A D | npfstream.c | 60 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 D | ip_compat.h | 54 #ifndef TH_SYN 55 # define TH_SYN 0x02 macro
|
/netbsd-src/external/bsd/ipf/dist/lib/ |
H A D | flags.c | 24 u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
|
H A D | printpacket.c | 92 if (tcp->th_flags & TH_SYN)
|
/netbsd-src/external/bsd/ipf/dist/ipsend/ |
H A D | iptests.c | 980 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 D | lsock.c | 253 ti->ti_flags = TH_SYN;
|
H A D | ipsend.c | 403 tcp->th_flags |= TH_SYN;
|
H A D | ip.c | 282 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
|
/netbsd-src/sys/external/bsd/ipf/netinet/ |
H A D | ip_state.c | 1378 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 D | ip_compat.h | 818 #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 D | ip_rcmd_pxy.c | 264 tcp2->th_flags = TH_SYN; in ipf_p_rcmd_portmsg()
|
H A D | ip_state.h | 141 #define TH_OPENING (TH_SYN|TH_ACK)
|
/netbsd-src/dist/pf/libexec/tftp-proxy/ |
H A D | filter.c | 301 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 D | npf_state_test.c | 24 #define S TH_SYN
|
/netbsd-src/sys/dist/pf/net/ |
H A D | pf_osfp.c | 133 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
|
H A D | pf.c | 1305 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 D | npf_build.c | 482 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 D | trpt.c | 485 pf(TH_SYN, "SYN"); in tcp_trace()
|