Home
last modified time | relevance | path

Searched refs:TH_ACK (Results 1 – 25 of 33) sorted by relevance

12

/netbsd-src/sys/netinet/
H A Dtcp_fsm.h72 TH_RST|TH_ACK, /* CLOSED */
75 TH_SYN|TH_ACK, /* SYN_RCVD */
76 TH_ACK, /* ESTABLISHED */
77 TH_ACK, /* CLOSE_WAIT */
78 TH_FIN|TH_ACK, /* FIN_WAIT_1 */
79 TH_FIN|TH_ACK, /* CLOSING */
80 TH_FIN|TH_ACK, /* LAST_ACK */
81 TH_ACK, /* FIN_WAIT_2 */
82 TH_ACK, /* TIME_WAIT */
H A Dtcp_input.c1123 if ((tiflags & TH_ACK) == 0) { in tcp_vtw_input()
1158 (void)tcp_respond(0, m, m, th, th->th_seq + tlen, th->th_ack, TH_ACK); in tcp_vtw_input()
1169 if (tiflags & TH_ACK) { in tcp_vtw_input()
1175 TH_RST|TH_ACK);
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()
1571 if ((tiflags & (TH_RST|TH_ACK|TH_SYN)) != TH_SYN) { in tcp_input()
1574 } else if ((tiflags & (TH_ACK|TH_SYN)) == in tcp_input()
1575 (TH_ACK|TH_SYN)) { in tcp_input()
1581 } else if (tiflags & TH_ACK) { in tcp_input()
[all...]
H A Dtcp.h68 #define TH_ACK 0x10 /* Acknowledge: Part of connection establish */ macro
H A Dtcp_sack.c258 if (!TCP_SACK_ENABLED(tp) || ((th->th_flags & TH_ACK) == 0) || in tcp_sack_option()
H A Dtcp_output.c1082 ((flags & TH_ACK) == 0 || in tcp_output()
1108 ((flags & (TH_SYN|TH_ACK)) == TH_SYN || in tcp_output()
/netbsd-src/sys/net/npf/
H A Dnpf_state_tcp.c110 CTASSERT(TH_ACK == 0x10); in npf_tcpfl2case()
127 i = (tcpfl & (TH_SYN | TH_FIN)) | ((tcpfl & TH_ACK) >> 2); in npf_tcpfl2case()
382 if ((tcpfl & TH_ACK) == 0) { in npf_tcp_inwindow()
385 } else if ((tcpfl & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST) && ack == 0) { in npf_tcp_inwindow()
H A Dnpf_sendpkt.c176 th->th_flags = TH_ACK | TH_RST; in npf_return_tcp()
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/
H A Dip_compat.h63 #ifndef TH_ACK
64 # define TH_ACK 0x10 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.c98 if (tcp->th_flags & TH_ACK)
H A Dipft_tx.c30 TH_ACK, TH_URG, TH_ECN, TH_CWR };
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_state.c1585 if ((tcp->th_flags & ~(TH_FIN|TH_ACK|TH_ECNALL)) == in ipf_state_add()
2034 if (flags == (TH_SYN|TH_ACK)) { in ipf_state_tcp()
2174 if (!(tcpflags & TH_ACK)) { /* Pretend an ack was sent */ in ipf_state_tcpinwindow()
2176 } else if (((tcpflags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) && in ipf_state_tcpinwindow()
2221 } else if ((seq == 0) && (tcpflags == (TH_RST|TH_ACK)) && in ipf_state_tcpinwindow()
4010 ((tcpflags & TH_ACKMASK) == TH_ACK)) { in ipf_tcp_age()
4051 } else if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == in ipf_tcp_age()
4052 TH_ACK) { in ipf_tcp_age()
4080 if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == TH_ACK) { in ipf_tcp_age()
4112 } else if ((tcpflags & TH_ACKMASK) == TH_ACK) { in ipf_tcp_age()
[all …]
H A Dip_compat.h818 #define TCPF_ALL (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|\
1128 #ifndef TH_ACK
1129 # define TH_ACK 0x10 macro
1135 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
H A Dip_state.h141 #define TH_OPENING (TH_SYN|TH_ACK)
/netbsd-src/usr.sbin/npf/npftest/
H A Dnpfstream.c82 forw ? ">" : "<", (th->th_flags & (TH_SYN | TH_ACK | TH_FIN)), in process_tcpip()
/netbsd-src/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_state_test.c25 #define A TH_ACK
/netbsd-src/sys/net/
H A Dslcompress.c196 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp()
/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);
1035 t->th_flags = TH_ACK;
1148 t->th_flags = TH_ACK|TH_URG;
1175 t->th_flags = TH_ACK;
H A Dipsend.c406 tcp->th_flags |= TH_ACK;
/netbsd-src/sys/dist/pf/net/
H A Dpf.c1077 TH_RST|TH_ACK, 0, 0, 0, 1, cur->tag, NULL, NULL);
1311 if (f & TH_ACK)
3459 ntohl(th->th_ack), ack, TH_RST|TH_ACK, 0, 0,
3543 if ((th->th_flags & (TH_SYN|TH_ACK)) ==
3700 (th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN &&
3724 TH_SYN|TH_ACK, 0, s->src.mss, 0, 1, 0, NULL, NULL);
3866 TH_SYN|TH_ACK, 0, (*state)->src.mss, 0, 1,
3870 } else if (!(th->th_flags & TH_ACK) ||
3893 if (((th->th_flags & (TH_SYN|TH_ACK)) != TH_ACK) ||
3908 } else if (((th->th_flags & (TH_SYN|TH_ACK)) !=
[all …]
H A Dpf_osfp.c133 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) in pf_osfp_fingerprint_hdr()
/netbsd-src/usr.sbin/trpt/
H A Dtrpt.c486 pf(TH_ACK, "ACK"); in tcp_trace()
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_data.c479 case 'A': tfl |= TH_ACK; break; in npfctl_parse_tcpflag()
H A Dnpf_show.c169 if (tfl & TH_ACK) buf[i++] = 'A'; in tcpflags2string()
/netbsd-src/dist/pf/libexec/tftp-proxy/
H A Dfilter.c303 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()

12