Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 62) sorted by relevance

123

/f-stack/freebsd/netinet/tcp_stacks/
H A Drack_bbr_common.c372 len = drop_hdrlen + tlen; in ctf_process_inbound_raw()
404 tlen -= off; in ctf_process_inbound_raw()
516 int32_t tlen; in ctf_drop_checks() local
519 tlen = *tlenp; in ctf_drop_checks()
534 if (todrop > tlen in ctf_drop_checks()
547 todrop = tlen; in ctf_drop_checks()
568 tlen -= todrop; in ctf_drop_checks()
583 if (todrop >= tlen) { in ctf_drop_checks()
602 tlen -= todrop; in ctf_drop_checks()
606 *tlenp = tlen; in ctf_drop_checks()
[all …]
H A Drack_bbr_common.h106 struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val);
109 struct tcphdr *th, int32_t rstreason, int32_t tlen);
123 struct tcpcb *tp, int32_t tlen, int32_t thflags, int32_t * ret_val);
130 int32_t rstreason, int32_t tlen);
H A Drack.c8548 if (tlen == 0 && in rack_process_data()
8615 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in rack_process_data()
8653 if (tlen && in rack_process_data()
8886 if (tlen && in rack_do_fastnewdata()
9237 if (DELAY_ACK(tp, tlen) && tlen != 0 && !tfo_partial) { in rack_do_syn_sent()
9593 if (tlen == 0) { in rack_do_established()
9809 *tlen = 0; in rack_check_data_after_close()
10198 tlen) { in rack_do_fin_wait_2()
11043 tlen, iptos); in rack_do_segment_nounlock()
12220 long tlen; in rack_output() local
[all …]
H A Dbbr.c8228 if (tlen == 0 && in bbr_process_data()
8295 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in bbr_process_data()
8340 tp->rcv_nxt += tlen; in bbr_process_data()
8341 if (tlen && in bbr_process_data()
8566 tp->rcv_nxt += tlen; in bbr_do_fastnewdata()
8567 if (tlen && in bbr_do_fastnewdata()
8977 tlen = tp->rcv_wnd; in bbr_do_syn_sent()
9292 if (tlen == 0) { in bbr_do_established()
9503 *tlen = 0; in bbr_check_data_after_close()
9909 tlen) { in bbr_do_fin_wait_2()
[all …]
/f-stack/freebsd/netinet/libalias/
H A Dalias_ftp.c229 int hlen, tlen, dlen, pflags; in AliasHandleFtpOut() local
237 tlen = ntohs(pip->ip_len); in AliasHandleFtpOut()
238 dlen = tlen - hlen; in AliasHandleFtpOut()
281 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') in AliasHandleFtpOut()
294 int hlen, tlen, dlen, pflags; in AliasHandleFtpIn() local
301 tlen = ntohs(pip->ip_len); in AliasHandleFtpIn()
302 dlen = tlen - hlen; in AliasHandleFtpIn()
332 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') in AliasHandleFtpIn()
666 int slen, hlen, tlen, dlen; in NewFtpMessage() local
677 tlen = ntohs(pip->ip_len); in NewFtpMessage()
[all …]
H A Dalias_smedia.c242 int hlen, tlen, dlen; in alias_rtsp_out() local
257 tlen = ntohs(pip->ip_len); in alias_rtsp_out()
258 dlen = tlen - hlen; in alias_rtsp_out()
483 int hlen, tlen, dlen; in AliasHandleRtspOut() local
495 tlen = ntohs(pip->ip_len); in AliasHandleRtspOut()
496 dlen = tlen - hlen; in AliasHandleRtspOut()
H A Dalias_irc.c174 int hlen, tlen, dlen; in AliasHandleIrcOut() local
184 tlen = ntohs(pip->ip_len); in AliasHandleIrcOut()
185 dlen = tlen - hlen; in AliasHandleIrcOut()
H A Dalias_skinny.c306 size_t hlen, tlen, dlen; in AliasHandleSkinny() local
316 tlen = ntohs(pip->ip_len); in AliasHandleSkinny()
317 dlen = tlen - hlen; in AliasHandleSkinny()
H A Dalias_pptp.c439 int hlen, tlen, dlen; in AliasVerifyPptp() local
446 tlen = ntohs(pip->ip_len); in AliasVerifyPptp()
447 dlen = tlen - hlen; in AliasVerifyPptp()
/f-stack/freebsd/kern/
H A Duipc_mbuf2.c100 int hlen, tlen, olen; in m_pulldown() local
193 tlen = len - hlen; in m_pulldown()
211 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
213 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
214 n->m_len += tlen; in m_pulldown()
215 m_adj(n->m_next, tlen); in m_pulldown()
219 && writable && n->m_next->m_len >= tlen) { in m_pulldown()
246 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
247 o->m_len += tlen; in m_pulldown()
248 m_adj(n->m_next, tlen); in m_pulldown()
/f-stack/freebsd/netinet/
H A Dtcp_input.c628 int tlen = 0, off; in tcp_input() local
1886 if (tlen && in tcp_do_segment()
2046 if (DELAY_ACK(tp, tlen) && tlen != 0 && !tfo_partial_ack) in tcp_do_segment()
2244 if (tlen) in tcp_do_segment()
2290 todrop = tlen; in tcp_do_segment()
2311 tlen -= todrop; in tcp_do_segment()
2363 tlen -= todrop; in tcp_do_segment()
3103 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in tcp_do_segment()
3130 if (tlen && in tcp_do_segment()
3401 tlen++; in tcp_dropwithreset()
[all …]
H A Dtcp_reass.c325 struct mbuf *m, struct tcphdr *th, int tlen, in tcp_reass_append() argument
330 tcp_log_reassm(tp, last, NULL, th->th_seq, tlen, TCP_R_LOG_APPEND, 0); in tcp_reass_append()
332 last->tqe_len += tlen; in tcp_reass_append()
333 last->tqe_m->m_pkthdr.len += tlen; in tcp_reass_append()
341 TCPSTAT_ADD(tcps_rcvoobyte, tlen); in tcp_reass_append()
351 int tlen, struct mbuf *mlast, int lenofoh) in tcp_reass_prepend() argument
356 tcp_log_reassm(tp, first, NULL, th->th_seq, tlen, TCP_R_LOG_PREPEND, 0); in tcp_reass_prepend()
358 if (SEQ_GT((th->th_seq + tlen), first->tqe_start)) { in tcp_reass_prepend()
360 i = (th->th_seq + tlen) - first->tqe_start; in tcp_reass_prepend()
371 first->tqe_len += tlen; in tcp_reass_prepend()
[all …]
/f-stack/freebsd/netpfil/ipfw/pmod/
H A Dtcpmod.c63 tcpmod_setmss(struct mbuf **mp, struct tcphdr *tcp, int tlen, uint16_t mss) in tcpmod_setmss() argument
82 for (tlen -= sizeof(struct tcphdr), cp = (u_char *)(tcp + 1); in tcpmod_setmss()
83 tlen > 0; tlen -= optlen, cp += optlen) { in tcpmod_setmss()
90 if (tlen < 2) in tcpmod_setmss()
93 if (optlen < 2 || optlen > tlen) in tcpmod_setmss()
/f-stack/dpdk/lib/librte_ipsec/
H A Desp_inb.c360 ofs = mb->pkt_len - tlen; in process_step1()
403 tlen + hlen > mb->pkt_len) in trs_process_check()
408 tofs[0] = mb->pkt_len - tlen; in trs_process_check()
426 return (trs_process_check(mb, ml, tofs, espt, hlen, tlen) || in tun_process_check()
439 uint32_t adj, uint32_t tofs, uint32_t tlen, uint32_t *sqn) in tun_process_step2() argument
448 mbuf_cut_seg_ofs(mb, ml, tofs, tlen); in tun_process_step2()
463 uint32_t adj, uint32_t tofs, uint32_t tlen, uint32_t *sqn) in trs_process_step2() argument
471 np = tun_process_step2(mb, ml, hlen, adj, tofs, tlen, sqn); in trs_process_step2()
530 const uint32_t tlen = sa->icv_len + sizeof(espt[0]) + sqh_len; in tun_process() local
544 tl = tlen + espt[i].pad_len; in tun_process()
[all …]
H A Desp_outb.c112 uint32_t clen, hlen, l2len, pdlen, pdofs, plen, tlen; in outb_tun_pkt_prepare() local
132 tlen = pdlen + sa->icv_len + sqh_len; in outb_tun_pkt_prepare()
136 if (tlen + sa->aad_len > rte_pktmbuf_tailroom(ml)) in outb_tun_pkt_prepare()
146 ml->data_len += tlen; in outb_tun_pkt_prepare()
147 mb->pkt_len += tlen; in outb_tun_pkt_prepare()
280 uint32_t clen, hlen, pdlen, pdofs, plen, tlen, uhlen; in outb_trs_pkt_prepare() local
303 tlen = pdlen + sa->icv_len + sqh_len; in outb_trs_pkt_prepare()
307 if (tlen + sa->aad_len > rte_pktmbuf_tailroom(ml)) in outb_trs_pkt_prepare()
317 ml->data_len += tlen; in outb_trs_pkt_prepare()
318 mb->pkt_len += tlen; in outb_trs_pkt_prepare()
/f-stack/dpdk/drivers/bus/vmbus/
H A Dvmbus_channel.c117 pkt.hdr.tlen = pad_pktlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send()
161 pkt.hdr.tlen = pad_pktlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send_sglist()
243 if (unlikely(pkt.hlen > pkt.tlen)) { in rte_vmbus_chan_recv()
245 pkt.hlen, pkt.tlen); in rte_vmbus_chan_recv()
251 dlen = (pkt.tlen << VMBUS_CHANPKT_SIZE_SHIFT) - hlen; in rte_vmbus_chan_recv()
288 if (unlikely(pkt.hlen > pkt.tlen)) { in rte_vmbus_chan_recv_raw()
290 pkt.hlen, pkt.tlen); in rte_vmbus_chan_recv_raw()
295 dlen = pkt.tlen << VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_recv_raw()
423 pkt.tlen << VMBUS_CHANPKT_SIZE_SHIFT, in vmbus_dump_ring()
H A Drte_vmbus_reg.h156 uint16_t tlen; /* total len, in 8 bytes */ member
164 return vmbus_chanpkt_getlen(pkt->tlen) in vmbus_chanpkt_datalen()
/f-stack/freebsd/netipsec/
H A Dkey_debug.c171 int tlen, extlen; in kdebug_sadb() local
188 while (tlen > 0) { in kdebug_sadb()
197 if (ext->sadb_ext_len > tlen) { in kdebug_sadb()
199 __func__, ext->sadb_ext_len, tlen); in kdebug_sadb()
262 tlen -= extlen; in kdebug_sadb()
538 int tlen; in kdebug_sadb_x_policy() local
544 while (tlen > 0) { in kdebug_sadb_x_policy()
568 if (xisr->sadb_x_ipsecrequest_len > tlen) { in kdebug_sadb_x_policy()
571 xisr->sadb_x_ipsecrequest_len, tlen); in kdebug_sadb_x_policy()
575 tlen -= xisr->sadb_x_ipsecrequest_len; in kdebug_sadb_x_policy()
[all …]
/f-stack/dpdk/drivers/net/bnxt/tf_ulp/
H A Dulp_utils.c155 int tlen = len; in ulp_bs_push_lsb() local
163 tlen -= 8; in ulp_bs_push_lsb()
167 if (tlen) in ulp_bs_push_lsb()
168 ulp_bs_put_lsb(bs, pos, tlen, val[0]); in ulp_bs_push_lsb()
178 int tlen = len; in ulp_bs_push_msb() local
189 tlen -= tmp; in ulp_bs_push_msb()
194 tlen -= 8; in ulp_bs_push_msb()
/f-stack/freebsd/net80211/
H A Dieee80211_radiotap.c57 struct ieee80211_radiotap_header *th, int tlen, uint32_t tx_radiotap, in ieee80211_radiotap_attach() argument
60 ieee80211_radiotap_attachv(ic, th, tlen, 0, tx_radiotap, in ieee80211_radiotap_attach()
67 int tlen, int n_tx_v, uint32_t tx_radiotap, in ieee80211_radiotap_attachv() argument
74 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
/f-stack/freebsd/netgraph/
H A Dng_pppoe.c400 int tlen; in make_packet() local
411 tlen = ntohs((*tag)->tag_len) + sizeof(**tag); in make_packet()
417 bcopy(*tag, (char *)dp, tlen); in make_packet()
418 length += tlen; in make_packet()
419 dp += tlen; in make_packet()
1301 int error, tlen; in send_acname() local
1315 sts->hook[tlen] = '\0'; in send_acname()
1365 int error, tlen; in send_hurl() local
1379 padm->msg[tlen] = '\0'; in send_hurl()
1388 int error, tlen; in send_motm() local
[all …]
/f-stack/freebsd/x86/include/
H A Dbus_dma.h146 bus_size_t tlen, int ma_offs, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_ma() argument
152 return (tc->impl->load_ma(dmat, map, ma, tlen, ma_offs, flags, in _bus_dmamap_load_ma()
/f-stack/freebsd/arm64/include/
H A Dbus_dma.h111 bus_size_t tlen, int ma_offs, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_ma() argument
117 return (tc->impl->load_ma(dmat, map, ma, tlen, ma_offs, flags, in _bus_dmamap_load_ma()
/f-stack/freebsd/sys/
H A Dbus_dma_internal.h49 struct vm_page **ma, bus_size_t tlen, int ma_offs,
/f-stack/freebsd/contrib/openzfs/module/icp/api/
H A Dkcf_cipher.c166 int tlen; in crypto_cipher_init_prov() local
175 tlen = key->ck_length >> 3; in crypto_cipher_init_prov()
177 tlen = key->ck_length; in crypto_cipher_init_prov()
183 (tlen >= sinfo->cm_min_key_length) && in crypto_cipher_init_prov()
184 (tlen <= sinfo->cm_max_key_length)) { in crypto_cipher_init_prov()

123