Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet/
H A Dtcp_timewait.c167 thflags = tcp_get_flags(th); in tcp_twcheck()
245 if (tcp_get_flags(th) & TH_ACK) { in tcp_twcheck()
249 if (tcp_get_flags(th) & TH_SYN) in tcp_twcheck()
251 if (tcp_get_flags(th) & TH_FIN) in tcp_twcheck()
H A Dtcp_reass.c325 last->tqe_flags |= (tcp_get_flags(th) & TH_FIN); in tcp_reass_append()
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()
908 tcp_reass_replace(tp, q, m, th->th_seq, *tlenp, mlast, lenofoh, tcp_get_flags(th)); in tcp_reass()
957 flags = tcp_get_flags(th) & TH_FIN; in tcp_reass()
1031 te->tqe_flags = tcp_get_flags(th); in tcp_reass()
H A Dtcp_lro_hpts.c85 ae->flags |= tcp_get_flags(th); in build_ack_entry()
132 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH | TH_ECE | TH_CWR)) != 0) in tcp_lro_ack_valid()
139 if (!(tcp_get_flags(th) & TH_ACK)) in tcp_lro_ack_valid()
H A Dtcp_lro.c894 le->flags = tcp_get_flags(th); in tcp_set_entry_to_mbuf()
1006 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1050 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1066 ((tcp_get_flags(th) & TH_ACK) != in tcp_lro_condense()
1345 if (__predict_false(tcp_get_flags(th) & TH_SYN)) in tcp_lro_rx_common()
H A Dtcp_input.c556 cc_ecnpkt_handler_flags(tp, tcp_get_flags(th), iptos); in cc_ecnpkt_handler()
807 thflags = tcp_get_flags(th); in tcp_input_with_port()
1537 thflags = tcp_get_flags(th); in tcp_do_segment()
3258 thflags = tcp_get_flags(th) & TH_FIN; in tcp_do_segment()
3498 if ((tcp_get_flags(th) & TH_RST) || m->m_flags & (M_BCAST|M_MCAST)) in tcp_dropwithreset()
3528 if (tcp_get_flags(th) & TH_ACK) { in tcp_dropwithreset()
3532 if (tcp_get_flags(th) & TH_SYN) in tcp_dropwithreset()
3534 if (tcp_get_flags(th) & TH_FIN) in tcp_dropwithreset()
H A Dtcp.h96 #define tcp_get_flags(th) __tcp_get_flags(th) macro
H A Dtcp_syncache.c1062 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand()
1385 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add()
1539 sc->sc_flags |= tcp_ecn_syncache_add(tcp_get_flags(th), iptos); in syncache_add()
1714 sc->sc_flags |= tcp_ecn_syncache_add(tcp_get_flags(th), iptos); in syncache_add()
/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()
274 if (tcp_get_flags(th) & TH_URG) { in sl_compress_tcp()
354 if (tcp_get_flags(th) & TH_PUSH) in sl_compress_tcp()
519 tcp_set_flags(th, tcp_get_flags(th) | TH_PUSH); in sl_uncompress_tcp_core()
521 tcp_set_flags(th, tcp_get_flags(th) & ~TH_PUSH); in sl_uncompress_tcp_core()
539 tcp_set_flags(th, tcp_get_flags(th) | TH_URG); in sl_uncompress_tcp_core()
542 tcp_set_flags(th, tcp_get_flags(th) & ~TH_URG); in sl_uncompress_tcp_core()
/freebsd/sys/netinet/libalias/
H A Dalias_skinny.c217 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in alias_skinny_reg_msg()
260 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in alias_skinny_port_msg()
290 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in alias_skinny_opnrcvch_ack()
H A Dalias_smedia.c405 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in alias_rtsp_out()
452 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in alias_pna_out()
H A Dalias_irc.c459 tcp_set_flags(tc, tcp_get_flags(tc) | TH_RES1); in AliasHandleIrcOut()
/freebsd/sys/dev/irdma/
H A Dirdma_cm.c398 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_ACK); in irdma_form_ah_cm_frame()
405 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_SYN); in irdma_form_ah_cm_frame()
412 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_FIN); in irdma_form_ah_cm_frame()
416 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_RST); in irdma_form_ah_cm_frame()
585 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_ACK); in irdma_form_uda_cm_frame()
592 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_SYN); in irdma_form_uda_cm_frame()
599 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_FIN); in irdma_form_uda_cm_frame()
603 tcp_set_flags(tcph, tcp_get_flags(tcph) | TH_RST); in irdma_form_uda_cm_frame()
799 (u32)tcp_get_flags(tcph) & TH_SYN); in irdma_handle_tcp_options()
2770 if (tcp_get_flags(tcph) & TH_RST) { in irdma_process_pkt()
[all …]
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c1371 flags = tcp_get_flags(th); in pf_normalize_tcp()
1396 if (flags != tcp_get_flags(th) || in pf_normalize_tcp()
1397 (tcp_get_flags(th) & (TH_RES1|TH_RES2|TH_RES2)) != 0) { in pf_normalize_tcp()
1466 if ((tcp_get_flags(th) & TH_SYN) == 0) in pf_normalize_tcp_init()
1817 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
1826 } else if (!got_ts && (tcp_get_flags(th) & TH_RST) == 0 && in pf_normalize_tcp_stateful()
1828 || pd->p_len > 0 || (tcp_get_flags(th) & TH_SYN)) && in pf_normalize_tcp_stateful()
1867 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
1896 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
H A Dpf.c4292 !(tcp_get_flags(th) & TH_RST)) { in pf_return()
4299 if (tcp_get_flags(th) & TH_SYN) in pf_return()
4301 if (tcp_get_flags(th) & TH_FIN) in pf_return()
5778 PF_TEST_ATTRIB((r->flagset & tcp_get_flags(th)) != r->flags, in pf_test_rule()
6123 if ((tcp_get_flags(th) & (TH_SYN|TH_ACK)) == TH_SYN && in pf_create_state()
6134 if (tcp_get_flags(th) & TH_SYN) { in pf_create_state()
6146 if (tcp_get_flags(th) & TH_FIN) in pf_create_state()
6240 if (pd->proto == IPPROTO_TCP && (tcp_get_flags(th) & (TH_SYN|TH_ACK)) == in pf_create_state()
6432 if (src->wscale && dst->wscale && !(tcp_get_flags(th) & TH_SYN)) { in pf_tcp_track_full()
6471 if (tcp_get_flags(th) & TH_SYN) { in pf_tcp_track_full()
[all …]
/freebsd/sys/dev/sfxge/
H A Dsfxge_tx.c862 KASSERT(!(tcp_get_flags(th) & (TH_URG | TH_SYN)), in sfxge_parse_tx_packet()
864 tcp_get_flags(th) & (TH_URG | TH_SYN))); in sfxge_parse_tx_packet()
865 TSO_MBUF_FLAGS(mbuf) = tcp_get_flags(th); in sfxge_parse_tx_packet()
1120 KASSERT(!(tcp_get_flags(th) & (TH_URG | TH_SYN)), in tso_start()
1122 tcp_get_flags(th) & (TH_URG | TH_SYN))); in tso_start()
1123 tso->tcp_flags = tcp_get_flags(th); in tso_start()
1322 tcp_set_flags(tsoh_th, tcp_get_flags(tsoh_th) & ~(TH_FIN | TH_PUSH)); in tso_start_new_packet()
H A Dsfxge_rx.c486 tcp_set_flags(c_th, tcp_get_flags(c_th) | (tcp_get_flags(th) & TH_PUSH)); in sfxge_lro_merge()
548 | (tcp_get_flags(th) & (TH_URG | TH_SYN | TH_RST | TH_FIN))); in sfxge_lro_try_merge()
595 if (tcp_get_flags(th) & (TH_FIN | TH_RST)) { in sfxge_lro_try_merge()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c317 if (tcp_get_flags(tcp) & TH_RST) in ipf_send_reset()
324 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_send_reset()
325 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_send_reset()
359 if (tcp_get_flags(tcp) & TH_ACK) { in ipf_send_reset()
H A Dip_state.c1523 if (tcp_get_flags(tcp) & TH_RST) { in ipf_state_add()
1556 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_add()
1557 ((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()
1579 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) in ipf_state_add()
1971 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) { in ipf_state_tcp()
2014 flags = tcp_get_flags(tcp) & ~(TH_FIN|TH_ECNALL); in ipf_state_tcp()
2113 tcpflags = tcp_get_flags(tcp); in ipf_state_tcpinwindow()
2316 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_clone()
2317 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_state_clone()
[all …]
H A Dip_ftp_pxy.c1243 mlen, tcp_get_flags(tcp)); in ipf_p_ftp_process()
1245 if ((mlen == 0) && ((tcp_get_flags(tcp) & TH_OPENING) == TH_OPENING)) { in ipf_p_ftp_process()
1286 rv ? "IN" : "OUT", tcp_get_flags(tcp), thseq, seqoff, in ipf_p_ftp_process()
1360 if (tcp_get_flags(tcp) & TH_FIN) { in ipf_p_ftp_process()
1533 if (tcp_get_flags(tcp) & TH_FIN) in ipf_p_ftp_process()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw2.c899 if ((tcp_get_flags(tcp) & TH_RST) == 0) { in send_reject6()
903 tcp_get_flags(tcp) | TH_RST); in send_reject6()
1018 if ( (tcp_get_flags(tcp) & TH_RST) == 0) { in send_reject()
1022 tcp_get_flags(tcp) | TH_RST); in send_reject()
1614 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1805 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
2522 flags_match(cmd, tcp_get_flags(TCP(ulp)))); in ipfw_chk()
2593 (tcp_get_flags(TCP(ulp)) & in ipfw_chk()
/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()
1772 if (last_wr && tcp_get_flags(tcp) & TH_PUSH) in ktls_write_tls_wr()
1969 has_fin = (tcp_get_flags(tcp) & TH_FIN) != 0; in t6_ktls_write_wr()
/freebsd/sys/netgraph/
H A Dng_tcpmss.c333 if (!(tcp_get_flags(tcp) & TH_SYN) || tcphlen == sizeof(struct tcphdr)) in ng_tcpmss_rcvdata()
H A Dng_nat.c884 if (tcp_get_flags(th) & TH_RES1) { in ng_nat_rcvdata()
887 tcp_set_flags(th, tcp_get_flags(th) & ~TH_RES1); in ng_nat_rcvdata()
/freebsd/sys/dev/virtio/network/
H A Dvirtio_net.h484 if (tcp_get_flags(tcp) & TH_CWR) { in virtio_net_tx_offload_tso()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c190 tcp_set_flags(th, tcp_get_flags(th) | TH_PUSH); in mlx5e_lro_update_hdr()
193 tcp_set_flags(th, tcp_get_flags(th) | TH_ACK); in mlx5e_lro_update_hdr()

12