Home
last modified time | relevance | path

Searched refs:TH_FIN (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/sys/netinet/
H A Dtcp_fsm.h78 TH_FIN|TH_ACK, /* 6, FIN_WAIT_1 */
79 TH_FIN|TH_ACK, /* 7, CLOSING */
80 TH_FIN|TH_ACK, /* 8, LAST_ACK */
H A Dtcp_timewait.c210 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_twcheck()
251 if (tcp_get_flags(th) & TH_FIN) in tcp_twcheck()
283 if (thflags & TH_FIN) { in tcp_twcheck()
H A Dtcp_output.c145 KASSERT(((len) == 0 && ((th_flags) & (TH_SYN | TH_FIN)) == 0) ||\
362 flags |= TH_FIN; in tcp_default_output()
392 flags &= ~TH_FIN; in tcp_default_output()
455 flags &= ~TH_FIN; in tcp_default_output()
572 flags &= ~TH_FIN; in tcp_default_output()
713 if (flags & TH_FIN && in tcp_default_output()
906 flags &= ~TH_FIN; in tcp_default_output()
1100 flags &= ~TH_FIN; in tcp_default_output()
1133 else if (flags & (TH_SYN|TH_FIN|TH_RST)) in tcp_default_output()
1195 if (flags & TH_FIN && tp->t_flags & TF_SENTFIN && in tcp_default_output()
[all …]
H A Dtcp_reass.c325 last->tqe_flags |= (tcp_get_flags(th) & TH_FIN); in tcp_reass_append()
404 q->tqe_flags = (flags & TH_FIN); in tcp_reass_replace()
428 ent->tqe_flags |= (q->tqe_flags & TH_FIN); in tcp_reass_merge_into()
558 if ((*tlenp == 0) && ((tcp_get_flags(th) & TH_FIN) == 0)) { in tcp_reass()
575 (tcp_get_flags(th) & TH_FIN) && in tcp_reass()
621 if ((tcp_get_flags(th) & TH_FIN) && in tcp_reass()
662 if (last->tqe_flags & TH_FIN) { in tcp_reass()
687 if (last->tqe_flags & TH_FIN) { in tcp_reass()
957 flags = tcp_get_flags(th) & TH_FIN; in tcp_reass()
1064 flags = q->tqe_flags & TH_FIN; in tcp_reass()
H A Dtcp_input.c1218 if ((thflags & TH_FIN) && V_drop_synfin) { in tcp_input_with_port()
1556 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment()
1589 if (thflags & TH_FIN) in tcp_do_segment()
1760 (thflags & (TH_SYN|TH_FIN|TH_RST|TH_URG|TH_ACK)) == TH_ACK && in tcp_do_segment()
2009 } else if (!(thflags & (TH_ACK|TH_FIN|TH_RST))) { in tcp_do_segment()
2127 thflags &= ~TH_FIN; in tcp_do_segment()
2289 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_do_segment()
2295 thflags &= ~TH_FIN; in tcp_do_segment()
2380 thflags &= ~(TH_PUSH|TH_FIN); in tcp_do_segment()
2404 ((thflags & (TH_SYN|TH_FIN)) != 0))) { in tcp_do_segment()
[all …]
H A Dtcp.h62 #define TH_FIN 0x01 macro
74 #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR|TH_AE)
H A Dtcp_offload.c155 } else if ((flags & TH_FIN || tp->t_flags & TF_NEEDFIN) && in tcp_offload_output()
/freebsd/sbin/ipf/libipf/
H A Dflags.c26 uint16_t flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
H A Dprintpacket.c88 if (tcpflags & TH_FIN) in printpacket()
H A Dipft_tx.c24 static uint16_t myflags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH,
/freebsd/contrib/tcpdump/
H A Dprint-cnfp.c228 flags & TH_FIN ? "F" : "", in cnfp_v1_print()
330 flags & TH_FIN ? "F" : "", in cnfp_v5_print()
432 flags & TH_FIN ? "F" : "", in cnfp_v6_print()
H A Dtcp.h55 #define TH_FIN 0x01 macro
H A Dprint-tcp.c105 { TH_FIN, "F" },
420 if (ndo->ndo_vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) { in tcp_print()
/freebsd/cddl/lib/libdtrace/
H A Dtcp.d83 #pragma D binding "1.6.3" TH_FIN
84 inline uint16_t TH_FIN = 0x01; variable
327 flags & TH_FIN ? "FIN" :
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c572 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in ctf_drop_checks()
578 thflags &= ~TH_FIN; in ctf_drop_checks()
641 thflags &= ~(TH_PUSH | TH_FIN); in ctf_drop_checks()
H A Dbbr.c5913 if (th_flags & (TH_SYN | TH_FIN) && (hintrsm == NULL)) { in bbr_log_output()
5922 if (th_flags & TH_FIN) in bbr_log_output()
5953 if (th_flags & TH_FIN) in bbr_log_output()
8221 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in bbr_process_data()
8276 thflags = tcp_get_flags(th) & TH_FIN; in bbr_process_data()
8347 thflags &= ~TH_FIN; in bbr_process_data()
8354 if (thflags & TH_FIN) { in bbr_process_data()
8880 thflags &= ~TH_FIN; in bbr_do_syn_sent()
8962 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_syn_recv()
8990 } else if (!(thflags & (TH_ACK | TH_FIN | TH_RST))) { in bbr_do_syn_recv()
[all …]
H A Drack.c8318 if (th_flags & (TH_SYN | TH_FIN)) { in rack_log_output()
8327 if (th_flags & TH_FIN) in rack_log_output()
8365 if (th_flags & TH_FIN) { in rack_log_output()
12309 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in rack_process_data()
12356 thflags = tcp_get_flags(th) & TH_FIN; in rack_process_data()
12436 thflags &= ~TH_FIN; in rack_process_data()
12443 if (thflags & TH_FIN) { in rack_process_data()
13006 thflags &= ~TH_FIN; in rack_do_syn_sent()
13084 (tp->t_fin_is_rst && (thflags & TH_FIN))) in rack_do_syn_recv()
13113 } else if (!(thflags & (TH_ACK | TH_FIN | TH_RST))) { in rack_do_syn_recv()
[all …]
/freebsd/contrib/pf/tftp-proxy/
H A Dfilter.c316 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); in prepare_rule()
320 (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); in prepare_rule()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_state.c1557 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_state_add()
1564 if ((tcp_get_flags(tcp) & ~(TH_FIN|TH_ACK|TH_ECNALL)) == in ipf_state_add()
2014 flags = tcp_get_flags(tcp) & ~(TH_FIN|TH_ECNALL); in ipf_state_tcp()
2128 ((tcpflags & TH_SYN) ? 1 : 0) + ((tcpflags & TH_FIN) ? 1 : 0); in ipf_state_tcpinwindow()
2317 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_state_clone()
4037 } else if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == in ipf_tcp_age()
4046 } else if (tcpflags & TH_FIN) { in ipf_tcp_age()
4066 if ((tcpflags & (TH_SYN|TH_FIN|TH_ACK)) == TH_ACK) { in ipf_tcp_age()
4082 } else if (tcpflags & TH_FIN) { in ipf_tcp_age()
4095 if (tcpflags & TH_FIN) { in ipf_tcp_age()
[all …]
H A Dip_compat.h812 #ifndef TH_FIN
813 # define TH_FIN 0x01 macro
831 #define TH_ACKMASK (TH_FIN|TH_SYN|TH_RST|TH_ACK)
/freebsd/sbin/ipf/ipsend/
H A Dipsend.c374 __tcp_set_flags(tcp, __tcp_get_flags(tcp) | TH_FIN); in main()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c998 if ((tcp_get_flags(tcp) & TH_FIN) != 0 || ktls_has_tcp_options(tcp)) { in t6_ktls_parse_pkt()
1183 tcp_set_flags(&newtcp, tcp_get_flags(&newtcp) & ~(TH_PUSH | TH_FIN)); in ktls_write_tcp_options()
1373 if (m_tls->m_next == NULL && (tcp_get_flags(tcp) & TH_FIN) != 0) { in ktls_write_tls_wr()
1388 last_wr = m_tls->m_next == NULL && (tcp_get_flags(tcp) & TH_FIN) == 0; in ktls_write_tls_wr()
1969 has_fin = (tcp_get_flags(tcp) & TH_FIN) != 0; in t6_ktls_write_wr()
/freebsd/usr.sbin/ppp/
H A Dip.c376 finrst = __tcp_get_flags(th) & (TH_FIN|TH_RST); in FilterCheck()
832 for (mask = TH_FIN, n = 0; mask <= TH_FLAGS; mask <<= 1, n++) { in PacketCheck()
H A Dslcompress.c182 if ((__tcp_get_flags(th) & (TH_SYN | TH_FIN | TH_RST | TH_ACK)) != TH_ACK) { in sl_compress_tcp()
/freebsd/sys/net/
H A Dslcompress.c173 if ((tcp_get_flags(th) & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp()

12