| /f-stack/freebsd/net/ |
| H A D | slcompress.c | 225 hlen <<= 2; in sl_compress_tcp() 255 deltaS = hlen; in sl_compress_tcp() 257 hlen <<= 2; in sl_compress_tcp() 380 cp += hlen; in sl_compress_tcp() 385 cp += hlen; in sl_compress_tcp() 437 cp -= hlen; in sl_uncompress_tcp() 438 len += hlen; in sl_uncompress_tcp() 479 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core() 480 if (hlen > MAX_HDR || hlen > buflen) in sl_uncompress_tcp_core() 486 *hlenp = hlen; in sl_uncompress_tcp_core() [all …]
|
| H A D | if_me.c | 473 int hlen; in me_input() local 479 hlen = sizeof(struct mobhdr); in me_input() 481 hlen -= sizeof(struct in_addr); in me_input() 482 if (m->m_len < sizeof(struct ip) + hlen) in me_input() 515 m_adj(m, hlen); in me_input() 520 hlen = AF_INET; in me_input() 521 BPF_MTAP2(ifp, &hlen, sizeof(hlen), m); in me_input() 557 int error, hlen, plen; in me_transmit() local 602 hlen = sizeof(struct mobhdr); in me_transmit() 611 M_PREPEND(m, hlen, M_NOWAIT); in me_transmit() [all …]
|
| H A D | debugnet_inet.c | 87 unsigned short hlen; in debugnet_handle_ip() local 112 hlen = ip->ip_hl << 2; in debugnet_handle_ip() 113 if (hlen < sizeof(struct ip)) { in debugnet_handle_ip() 114 DNETDEBUG("bad IP header length (%hu)\n", hlen); in debugnet_handle_ip() 117 if (hlen > m->m_len) { in debugnet_handle_ip() 118 m = m_pullup(m, hlen); in debugnet_handle_ip() 127 if (hlen > sizeof(struct ip)) { in debugnet_handle_ip() 153 if (ip->ip_len < hlen) { in debugnet_handle_ip() 155 ip->ip_len, hlen); in debugnet_handle_ip() 208 ip->ip_len -= hlen; in debugnet_handle_ip()
|
| /f-stack/freebsd/netpfil/ipfw/pmod/ |
| H A D | tcpmod.c | 125 int hlen, plen, proto; in tcpmod_ipv6_setmss() local 128 hlen = sizeof(*ip6); in tcpmod_ipv6_setmss() 138 hbh = mtodo(*mp, hlen); in tcpmod_ipv6_setmss() 142 tcp = mtodo(*mp, hlen); in tcpmod_ipv6_setmss() 144 hlen = tcp->th_off << 2; in tcpmod_ipv6_setmss() 146 if (hlen <= sizeof(struct tcphdr) || hlen > plen) in tcpmod_ipv6_setmss() 158 int hlen, plen; in tcpmod_ipv4_setmss() local 161 hlen = ip->ip_hl << 2; in tcpmod_ipv4_setmss() 162 tcp = mtodo(*mp, hlen); in tcpmod_ipv4_setmss() 164 hlen = tcp->th_off << 2; in tcpmod_ipv4_setmss() [all …]
|
| /f-stack/freebsd/netipsec/ |
| H A D | ipsec_mbuf.c | 62 IPSEC_ASSERT(hlen < MHLEN, ("hlen too big: %u", hlen)); in m_makespace() 87 m->m_data -= hlen; in m_makespace() 89 m->m_len += hlen; in m_makespace() 124 m->m_len = skip + hlen; in m_makespace() 146 n->m_len = hlen; in m_makespace() 160 m->m_len += hlen; in m_makespace() 259 m_adj(m1, hlen); in m_striphdr() 261 m->m_pkthdr.len -= hlen; in m_striphdr() 272 if (roff + hlen > m1->m_len) { in m_striphdr() 303 m1->m_len -= hlen; in m_striphdr() [all …]
|
| H A D | udpencap.c | 123 int hlen; in udp_ipsec_input() local 151 hlen = ip->ip_hl << 2; in udp_ipsec_input() 172 udp = mtodo(m, hlen); in udp_ipsec_input() 196 m_striphdr(m, hlen, sizeof(*udp)); in udp_ipsec_input() 208 (*sav->tdb_xform->xf_input)(m, sav, hlen, off); in udp_ipsec_input() 218 int hlen, off; in udp_ipsec_output() local 226 hlen = ip->ip_hl << 2; in udp_ipsec_output() 227 n = m_makespace(m, hlen, sizeof(*udp), &off); in udp_ipsec_output() 237 udp->uh_ulen = htons(m->m_pkthdr.len - hlen); in udp_ipsec_output()
|
| H A D | xform_esp.c | 270 int alen, error, hlen, plen; in esp_input() local 302 hlen = sizeof (struct esp) + sav->ivlen; in esp_input() 369 crp->crp_aad_length = hlen; in esp_input() 424 crp->crp_payload_start = skip + hlen; in esp_input() 491 int hlen, skip, protoff, error, alen; in esp_input_cb() local 583 hlen = sizeof (struct esp) + sav->ivlen; in esp_input_cb() 588 error = m_striphdr(m, skip, hlen); in esp_input_cb() 699 hlen = sizeof (struct esp) + sav->ivlen; in esp_output() 772 mo = m_makespace(m, skip, hlen, &roff); in esp_output() 863 crp->crp_payload_start = skip + hlen; in esp_output() [all …]
|
| /f-stack/dpdk/drivers/bus/vmbus/ |
| H A D | vmbus_channel.c | 105 const uint32_t hlen = sizeof(pkt); in rte_vmbus_chan_send() local 111 pktlen = hlen + dlen; in rte_vmbus_chan_send() 116 pkt.hdr.hlen = hlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send() 121 iov[0].iov_len = hlen; in rte_vmbus_chan_send() 155 pktlen = hlen + dlen; in rte_vmbus_chan_send_sglist() 160 pkt.hdr.hlen = hlen >> 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() 250 hlen = pkt.hlen << VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_recv() 288 if (unlikely(pkt.hlen > pkt.tlen)) { in rte_vmbus_chan_recv_raw() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/v2/ |
| H A D | ngx_http_v2_huff_encode.c | 195 size_t hlen; in ngx_http_v2_huff_encode() local 201 hlen = 0; in ngx_http_v2_huff_encode() 219 if (hlen + sizeof(buf) >= len) { in ngx_http_v2_huff_encode() 227 ngx_http_v2_huff_encode_buf(&dst[hlen], buf); in ngx_http_v2_huff_encode() 229 hlen += sizeof(buf); in ngx_http_v2_huff_encode() 235 return hlen; in ngx_http_v2_huff_encode() 242 if (hlen + pending / 8 >= len) { in ngx_http_v2_huff_encode() 250 dst[hlen++] = (u_char) (buf >> pending); in ngx_http_v2_huff_encode() 253 return hlen; in ngx_http_v2_huff_encode()
|
| H A D | ngx_http_v2_encode.c | 21 size_t hlen; in ngx_http_v2_string_encode() local 23 hlen = ngx_http_v2_huff_encode(src, len, tmp, lower); in ngx_http_v2_string_encode() 25 if (hlen > 0) { in ngx_http_v2_string_encode() 27 dst = ngx_http_v2_write_int(dst, ngx_http_v2_prefix(7), hlen); in ngx_http_v2_string_encode() 28 return ngx_cpymem(dst, tmp, hlen); in ngx_http_v2_string_encode()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_checksum.c | 311 int hlen, plen; in checksum_ipv4() local 322 hlen = ip4->ip_hl << 2; in checksum_ipv4() 332 if (hlen == sizeof(struct ip)) in checksum_ipv4() 343 pullup_len = l3_offset + hlen; in checksum_ipv4() 421 int hlen, plen; in checksum_ipv6() local 433 hlen = sizeof(struct ip6_hdr); in checksum_ipv6() 434 plen = ntohs(ip6->ip6_plen) + hlen; in checksum_ipv6() 450 hlen += (ip6e->ip6e_len + 1) << 3; in checksum_ipv6() 451 pullup_len = l3_offset + hlen; in checksum_ipv6() 458 hlen += (ip6e->ip6e_len + 2) << 2; in checksum_ipv6() [all …]
|
| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 913 int len, hlen, plen; in nat64_icmp_translate() local 1190 int proto, hlen; in nat64_getlasthdr() local 1193 hlen = *offset; in nat64_getlasthdr() 1195 hlen = 0; in nat64_getlasthdr() 1200 ip6 = mtodo(m, hlen); in nat64_getlasthdr() 1201 hlen += sizeof(*ip6); in nat64_getlasthdr() 1223 *offset = hlen; in nat64_getlasthdr() 1239 int plen, hlen; in nat64_do_handle_ip4() local 1328 m_adj(m, hlen); in nat64_do_handle_ip4() 1353 if (hlen == 0) { in nat64_handle_icmp6() [all …]
|
| H A D | nat64clat.c | 156 int hlen, proto; in nat64clat_handle_icmp6() local 158 hlen = 0; in nat64clat_handle_icmp6() 160 proto = nat64_getlasthdr(m, &hlen); in nat64clat_handle_icmp6() 165 icmp6 = mtodo(m, hlen); in nat64clat_handle_icmp6() 176 hlen += sizeof(struct icmp6_hdr); in nat64clat_handle_icmp6() 177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64clat_handle_icmp6() 181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64clat_handle_icmp6() 182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64clat_handle_icmp6() 191 ip6i = mtodo(m, hlen); in nat64clat_handle_icmp6()
|
| H A D | nat64stl.c | 156 int hlen, proto; in nat64stl_handle_icmp6() local 158 hlen = 0; in nat64stl_handle_icmp6() 160 proto = nat64_getlasthdr(m, &hlen); in nat64stl_handle_icmp6() 165 icmp6 = mtodo(m, hlen); in nat64stl_handle_icmp6() 176 hlen += sizeof(struct icmp6_hdr); in nat64stl_handle_icmp6() 177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64stl_handle_icmp6() 181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64stl_handle_icmp6() 182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64stl_handle_icmp6() 191 ip6i = mtodo(m, hlen); in nat64stl_handle_icmp6()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_mbuf2.c | 100 int hlen, tlen, olen; in m_pulldown() local 192 hlen = n->m_len - off; in m_pulldown() 193 tlen = len - hlen; in m_pulldown() 202 if (hlen + olen < len) { in m_pulldown() 218 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen in m_pulldown() 220 n->m_next->m_data -= hlen; in m_pulldown() 221 n->m_next->m_len += hlen; in m_pulldown() 223 n->m_len -= hlen; in m_pulldown() 242 o->m_len = hlen; in m_pulldown() 243 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown() [all …]
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_fil_freebsd.c | 348 int tlen = 0, hlen; local 369 hlen = sizeof(ip_t); 450 int hlen; local 461 hlen = sizeof(*oip); 480 hlen = sizeof(*ip6); 546 hlen = 0; 1432 int hlen; 1441 m->m_data += hlen; 1442 m->m_len -= hlen; 1444 m->m_len += hlen; [all …]
|
| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_ftp.c | 229 int hlen, tlen, dlen, pflags; in AliasHandleFtpOut() local 236 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut() 238 dlen = tlen - hlen; in AliasHandleFtpOut() 242 sptr += hlen; in AliasHandleFtpOut() 294 int hlen, tlen, dlen, pflags; in AliasHandleFtpIn() local 302 dlen = tlen - hlen; in AliasHandleFtpIn() 306 sptr += hlen; in AliasHandleFtpIn() 666 int slen, hlen, tlen, dlen; in NewFtpMessage() local 678 dlen = tlen - hlen; in NewFtpMessage() 736 sptr += hlen; in NewFtpMessage() [all …]
|
| H A D | alias_smedia.c | 242 int hlen, tlen, dlen; in alias_rtsp_out() local 256 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out() 258 dlen = tlen - hlen; in alias_rtsp_out() 411 new_len = htons(hlen + new_dlen); in alias_rtsp_out() 483 int hlen, tlen, dlen; in AliasHandleRtspOut() local 494 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut() 496 dlen = tlen - hlen; in AliasHandleRtspOut() 499 data += hlen; in AliasHandleRtspOut()
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | metamorphic.c | 15 size_t hlen; in mm_generichash() local 28 hlen = randombytes_uniform(crypto_generichash_BYTES_MAX - in mm_generichash() 31 h = (unsigned char *) sodium_malloc(hlen); in mm_generichash() 32 h2 = (unsigned char *) sodium_malloc(hlen); in mm_generichash() 37 crypto_generichash_init(&st, k, klen, hlen); in mm_generichash() 43 crypto_generichash_final(&st, h, hlen); in mm_generichash() 45 crypto_generichash(h2, hlen, m, mlen, k, klen); in mm_generichash() 47 assert(memcmp(h, h2, hlen) == 0); in mm_generichash()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw2.c | 545 hlen = sizeof(struct ip); in ipfw_send_abort() 558 tlen = hlen + plen; in ipfw_send_abort() 1547 PULLUP_LEN(hlen, ulp, in ipfw_chk() 1552 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk() 1554 PULLUP_LEN(hlen, ulp, in ipfw_chk() 1709 hlen = ip->ip_hl << 2; in ipfw_chk() 1734 PULLUP_LEN(hlen, ulp, in ipfw_chk() 1739 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk() 1741 PULLUP_LEN(hlen, ulp, in ipfw_chk() 2993 cmd->arg1, hlen, in ipfw_chk() [all …]
|
| /f-stack/dpdk/lib/librte_ipsec/ |
| H A D | esp_inb.c | 195 struct rte_mbuf *mb, uint32_t hlen, rte_be64_t *sqc) in inb_get_sqn() argument 221 uint32_t hlen, union sym_op_data *icv) in inb_prepare() argument 228 plen = plen - hlen; in inb_prepare() 284 struct rte_mbuf *mb, uint32_t hlen, union sym_op_data *icv) in inb_pkt_prepare() argument 289 rc = inb_get_sqn(sa, rsn, mb, hlen, &sqn); in inb_pkt_prepare() 293 rc = inb_prepare(sa, mb, hlen, icv); in inb_pkt_prepare() 355 struct rte_esp_tail *espt, uint32_t *hlen, uint32_t *tofs) in process_step1() argument 361 hlen[0] = mb->l2_len + mb->l3_len; in process_step1() 403 tlen + hlen > mb->pkt_len) in trs_process_check() 471 np = tun_process_step2(mb, ml, hlen, adj, tofs, tlen, sqn); in trs_process_step2() [all …]
|
| /f-stack/tools/libutil/ |
| H A D | login_class.c | 141 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) in substvar() argument 159 - dollas + (tildes * (pch+hlen)) in substvar() 177 memmove(p + hlen + v, p + 1, l); /* Subst homedir */ in substvar() 178 memmove(p, pwd->pw_dir, hlen); in substvar() 180 p[hlen] = '/'; in substvar() 181 p += hlen + v; in substvar() 201 int hlen = pwd ? strlen(pwd->pw_dir) : 0; in setclassenvironment() local 205 if (hlen && pwd->pw_dir[hlen-1] != '/') in setclassenvironment() 212 char * np = substvar(var, pwd, hlen, pch, nlen); in setclassenvironment() 238 if ((np = substvar(p, pwd, hlen, pch, nlen)) != NULL) { in setclassenvironment()
|
| /f-stack/app/redis-5.0.5/tests/integration/ |
| H A D | convert-zipmap-hash-on-load.tcl | 10 assert_equal 2 [r hlen hash] 21 assert_equal 2 [r hlen hash] 32 assert_equal 2 [r hlen hash]
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_output.c | 326 int hlen = sizeof (struct ip); in ip_output() local 371 ip->ip_hl = hlen >> 2; in ip_output() 375 hlen = ip->ip_hl << 2; in ip_output() 602 ip_mloopback(ifp, m, hlen); in ip_output() 700 hlen = ip->ip_hl << 2; in ip_output() 878 int hlen = ip->ip_hl << 2; in ip_fragment() local 946 if (off < hlen) in ip_fragment() 948 off = ((off - hlen) & ~7) + hlen; in ip_fragment() 954 off = hlen + len; in ip_fragment() 959 off = hlen + len; in ip_fragment() [all …]
|
| H A D | ip_input.c | 430 int hlen; in ip_direct_input() local 433 hlen = ip->ip_hl << 2; in ip_direct_input() 459 int checkif, hlen = 0; in ip_input() local 471 hlen = ip->ip_hl << 2; in ip_input() 493 hlen = ip->ip_hl << 2; in ip_input() 498 if (hlen > m->m_len) { in ip_input() 499 if ((m = m_pullup(m, hlen)) == NULL) { in ip_input() 521 if (hlen == sizeof(struct ip)) { in ip_input() 524 sum = in_cksum(m, hlen); in ip_input() 539 if (ip_len < hlen) { in ip_input() [all …]
|