Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet/
H A Dtcp_timewait.c164 thflags = tcp_get_flags(th); in tcp_twcheck()
242 if (tcp_get_flags(th) & TH_ACK) { in tcp_twcheck()
246 if (tcp_get_flags(th) & TH_SYN) in tcp_twcheck()
248 if (tcp_get_flags(th) & TH_FIN) in tcp_twcheck()
H A Dtcp_reass.c324 last->tqe_flags |= (tcp_get_flags(th) & TH_FIN); in tcp_reass_append()
557 if ((*tlenp == 0) && ((tcp_get_flags(th) & TH_FIN) == 0)) { in tcp_reass()
574 (tcp_get_flags(th) & TH_FIN) && in tcp_reass()
620 if ((tcp_get_flags(th) & TH_FIN) && in tcp_reass()
907 tcp_reass_replace(tp, q, m, th->th_seq, *tlenp, mlast, lenofoh, tcp_get_flags(th)); in tcp_reass()
956 flags = tcp_get_flags(th) & TH_FIN; in tcp_reass()
1030 te->tqe_flags = tcp_get_flags(th); in tcp_reass()
H A Dtcp_lro_hpts.c87 ae->flags |= tcp_get_flags(th); in build_ack_entry()
134 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH | TH_ECE | TH_CWR)) != 0) in tcp_lro_ack_valid()
141 if (!(tcp_get_flags(th) & TH_ACK)) in tcp_lro_ack_valid()
H A Dtcp_lro.c893 le->flags = tcp_get_flags(th); in tcp_set_entry_to_mbuf()
1005 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1049 if ((tcp_get_flags(th) & ~(TH_ACK | TH_PUSH)) != 0) { in tcp_lro_condense()
1065 ((tcp_get_flags(th) & TH_ACK) != in tcp_lro_condense()
1344 if (__predict_false(tcp_get_flags(th) & TH_SYN)) in tcp_lro_rx_common()
H A Dtcp_input.c552 cc_ecnpkt_handler_flags(tp, tcp_get_flags(th), iptos); in cc_ecnpkt_handler()
800 thflags = tcp_get_flags(th); in tcp_input_with_port()
1499 thflags = tcp_get_flags(th); in tcp_do_segment()
3179 thflags = tcp_get_flags(th) & TH_FIN; in tcp_do_segment()
3416 if ((tcp_get_flags(th) & TH_RST) || m->m_flags & (M_BCAST|M_MCAST)) in tcp_dropwithreset()
3446 if (tcp_get_flags(th) & TH_ACK) { in tcp_dropwithreset()
3450 if (tcp_get_flags(th) & TH_SYN) in tcp_dropwithreset()
3452 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.c1070 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK, in syncache_expand()
1417 KASSERT((tcp_get_flags(th) & (TH_RST|TH_ACK|TH_SYN)) == TH_SYN, in syncache_add()
1572 sc->sc_flags |= tcp_ecn_syncache_add(tcp_get_flags(th), iptos); in syncache_add()
1751 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()
2736 if (tcp_get_flags(tcph) & TH_RST) { in irdma_process_pkt()
[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.c474 tcp_set_flags(c_th, tcp_get_flags(c_th) | (tcp_get_flags(th) & TH_PUSH)); in sfxge_lro_merge()
536 | (tcp_get_flags(th) & (TH_URG | TH_SYN | TH_RST | TH_FIN))); in sfxge_lro_try_merge()
583 if (tcp_get_flags(th) & (TH_FIN | TH_RST)) { in sfxge_lro_try_merge()
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c1455 flags = tcp_get_flags(th); in pf_normalize_tcp()
1480 if (flags != tcp_get_flags(th) || in pf_normalize_tcp()
1481 (tcp_get_flags(th) & (TH_RES1|TH_RES2|TH_RES2)) != 0) { in pf_normalize_tcp()
1552 if ((tcp_get_flags(th) & TH_SYN) == 0) in pf_normalize_tcp_init()
1864 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
1873 } else if (!got_ts && (tcp_get_flags(th) & TH_RST) == 0 && in pf_normalize_tcp_stateful()
1875 || pd->p_len > 0 || (tcp_get_flags(th) & TH_SYN)) && in pf_normalize_tcp_stateful()
1914 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
1943 pf_print_flags(tcp_get_flags(th)); in pf_normalize_tcp_stateful()
H A Dpf.c4442 !(tcp_get_flags(th) & TH_RST)) { in pf_return()
4449 if (tcp_get_flags(th) & TH_SYN) in pf_return()
4451 if (tcp_get_flags(th) & TH_FIN) in pf_return()
5697 PF_TEST_ATTRIB((r->flagset & tcp_get_flags(ctx->th)) in pf_match_rule()
6244 if ((tcp_get_flags(th) & (TH_SYN|TH_ACK)) == TH_SYN && in pf_create_state()
6255 if (tcp_get_flags(th) & TH_SYN) { in pf_create_state()
6267 if (tcp_get_flags(th) & TH_FIN) in pf_create_state()
6361 if (pd->proto == IPPROTO_TCP && (tcp_get_flags(th) & (TH_SYN|TH_ACK)) == in pf_create_state()
6673 if (src->wscale && dst->wscale && !(tcp_get_flags(th) & TH_SYN)) { in pf_tcp_track_full()
6712 if (tcp_get_flags(th) & TH_SYN) { in pf_tcp_track_full()
[all …]
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c332 if (tcp_get_flags(tcp) & TH_RST) in ipf_send_reset()
339 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_send_reset()
340 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_send_reset()
374 if (tcp_get_flags(tcp) & TH_ACK) { in ipf_send_reset()
H A Dip_state.c1526 if (tcp_get_flags(tcp) & TH_RST) { in ipf_state_add()
1559 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_add()
1560 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_state_add()
1567 if ((tcp_get_flags(tcp) & ~(TH_FIN|TH_ACK|TH_ECNALL)) == in ipf_state_add()
1582 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) in ipf_state_add()
1974 if ((tcp_get_flags(tcp) & TH_OPENING) == TH_SYN) { in ipf_state_tcp()
2017 flags = tcp_get_flags(tcp) & ~(TH_FIN|TH_ECNALL); in ipf_state_tcp()
2116 tcpflags = tcp_get_flags(tcp); in ipf_state_tcpinwindow()
2305 ((tcp_get_flags(tcp) & TH_SYN) ? 1 : 0) + in ipf_state_clone()
2306 ((tcp_get_flags(tcp) & TH_FIN) ? 1 : 0); in ipf_state_clone()
[all …]
H A Dip_ftp_pxy.c1241 mlen, tcp_get_flags(tcp)); in ipf_p_ftp_process()
1243 if ((mlen == 0) && ((tcp_get_flags(tcp) & TH_OPENING) == TH_OPENING)) { in ipf_p_ftp_process()
1284 rv ? "IN" : "OUT", tcp_get_flags(tcp), thseq, seqoff, in ipf_p_ftp_process()
1358 if (tcp_get_flags(tcp) & TH_FIN) { in ipf_p_ftp_process()
1531 if (tcp_get_flags(tcp) & TH_FIN) in ipf_p_ftp_process()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw2.c900 if ((tcp_get_flags(tcp) & TH_RST) == 0) { in send_reject6()
904 tcp_get_flags(tcp) | TH_RST); in send_reject6()
1019 if ( (tcp_get_flags(tcp) & TH_RST) == 0) { in send_reject()
1023 tcp_get_flags(tcp) | TH_RST); in send_reject()
1615 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1812 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
2529 flags_match(cmd, tcp_get_flags(TCP(ulp)))); in ipfw_chk()
2600 (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()
1184 tcp_set_flags(&newtcp, tcp_get_flags(&newtcp) & ~(TH_PUSH | TH_FIN)); in ktls_write_tcp_options()
1375 if (m_tls->m_next == NULL && (tcp_get_flags(tcp) & TH_FIN) != 0) { in ktls_write_tls_wr()
1390 last_wr = m_tls->m_next == NULL && (tcp_get_flags(tcp) & TH_FIN) == 0; in ktls_write_tls_wr()
1774 if (last_wr && tcp_get_flags(tcp) & TH_PUSH) in ktls_write_tls_wr()
1974 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.c906 if (!(tcp_get_flags(th) & TH_RES1)) in ng_nat_rcvdata()
909 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