/src/usr.sbin/bootp/common/ |
hwaddr.h | 11 * length of the network hardware address is stored in "hlen". 15 unsigned int hlen; member in struct:hwinfo 30 #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)
|
dumptab.c | 184 int hlen = haddrlength(hp->htype); 188 haddrtoa(hp->haddr, hlen)); 183 int hlen = haddrlength(hp->htype); local in function:dump_host
|
/src/sys/lib/libsa/ |
ip.c | 124 size_t hlen; local in function:readip 153 hlen = ip->ip_hl << 2; 154 if (hlen != sizeof(*ip) || ip_cksum(ip, hlen) != 0) { 157 if (ntohs(ip->ip_len) < hlen) { 167 return (ntohs(ip->ip_len) - hlen);
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/bios/ |
power_budget.h | 18 u8 hlen; member in struct:nvbios_power_budget
|
vpstate.h | 10 u8 hlen; member in struct:nvbios_vpstate_header
|
/src/sys/net/ |
rss_config.c | 95 int hlen; local in function:rss_toeplitz_hash_from_mbuf_ipv4 104 hlen = ip->ip_hl << 2; 105 if (hlen < sizeof(struct ip)) 114 if (m->m_len >= hlen + sizeof(struct tcphdr)) { 117 th = (struct tcphdr *)(mtod(m, char *) + hlen); 124 } else if (m->m_pkthdr.len >= hlen + sizeof(struct tcphdr)) { 128 m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport), 147 if (m->m_len >= hlen + sizeof(struct udphdr)) { 150 uh = (struct udphdr *)(mtod(m, char *) + hlen); 157 } else if (m->m_pkthdr.len >= hlen + sizeof(struct udphdr)) 196 int hlen; local in function:rss_toeplitz_hash_from_mbuf_ipv6 [all...] |
slcompress.c | 178 u_int hlen = ip->ip_hl; local in function:sl_compress_tcp 195 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; 243 hlen += th->th_off; 244 hlen <<= 2; 245 if (hlen > m->m_len) 271 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; 272 deltaS = hlen; 273 hlen += th->th_off; 274 hlen <<= 2; 275 if (hlen > m->m_len 432 u_int hlen; local in function:sl_uncompress_tcp 476 u_int hlen, changes; local in function:sl_uncompress_tcp_core [all...] |
/src/sys/external/isc/libsodium/dist/test/default/ |
metamorphic.c | 15 size_t hlen; local in function:mm_generichash 28 hlen = randombytes_uniform(crypto_generichash_BYTES_MAX - 31 h = (unsigned char *) sodium_malloc(hlen); 32 h2 = (unsigned char *) sodium_malloc(hlen); 37 crypto_generichash_init(&st, k, klen, hlen); 43 crypto_generichash_final(&st, h, hlen); 45 crypto_generichash(h2, hlen, m, mlen, k, klen); 47 assert(memcmp(h, h2, hlen) == 0);
|
/src/lib/libedit/ |
hist.c | 105 size_t blen, hlen; local in function:hist_get 134 hlen = wcslen(hp) + 1; 136 if (hlen > blen && !ch_enlargebufs(el, hlen)) 139 memcpy(el->el_line.buffer, hp, hlen * sizeof(*hp)); 140 el->el_line.lastchar = el->el_line.buffer + hlen - 1;
|
/src/sys/netmpls/ |
mpls_ttl.c | 319 int hlen, len; local in function:ip4_check 329 hlen = iph->ip_hl << 2; 330 if (hlen < sizeof(struct ip)) 332 if (hlen > m->m_len) { 333 if ((m = m_pullup(m, hlen)) == NULL) 346 in_cksum(m, hlen) != 0) 350 if (len < hlen || m->m_pkthdr.len < len)
|
/src/usr.bin/rump_dhcpclient/ |
main.c | 234 size_t hlen; local in function:main 256 hlen = sizeof(ifo->hostname); 257 if (rump_sys___sysctl(mib, __arraycount(mib), ifo->hostname, &hlen,
|
/src/usr.bin/systat/ |
swap.c | 78 void showspace(char *header, int hlen, long blocksize); 81 static int hlen, nswap, rnswap; variable in typeref:typename:int 153 header = getbsize(&hlen, &blocksize); 155 "Disk", hlen, header, "Used", 175 mvwprintw(wnd, i + 1, col, "%*d", hlen, sep->se_nblks / blk_div); 177 col += hlen; 190 "Total", hlen, avail / blk_div, used / blk_div);
|
/src/usr.sbin/npf/npftest/ |
npfstream.c | 43 unsigned hlen, tcpdlen; local in function:process_tcpip 55 hlen = ip->ip_hl << 2; 56 p = (const uint8_t *)ip + hlen; 59 tcpdlen = ntohs(ip->ip_len) - hlen - (th->th_off << 2);
|
/src/sbin/swapctl/ |
swaplist.c | 64 int hlen, size, inuse, ncounted, pathmax; local in function:list_swap 103 header = getbsize(&hlen, &blocksize); 111 hlen = strlen(header); 119 pathmax, "Device", hlen, header, 134 (void)printf("%-*s %*ld ", pathmax, sep->se_path, hlen, 152 (void)printf("%-*s %*s ", pathmax, sep->se_path, hlen, szbuf); 209 hlen, szbuf, usbuf, avbuf, 213 hlen,
|
/src/sys/netinet6/ |
in6_offload.c | 56 int hlen; local in function:tcp6_segment 76 hlen = off + sizeof(*iph); 77 if (m->m_len < hlen) { 78 m = m_pullup(m, hlen); 87 hlen = off + iphlen + sizeof(*th); 88 if (m->m_len < hlen) { 89 m = m_pullup(m, hlen); 96 hlen = off + iphlen + thlen; 100 KASSERT(len > hlen); 102 t = m_split(m, hlen, M_NOWAIT) [all...] |
/src/usr.bin/nc/ |
socks.c | 193 size_t hlen, wlen; local in function:socks_connect 246 hlen = strlen(host); 247 if (hlen > 255) 253 buf[4] = hlen; 254 memcpy(buf + 5, host, hlen); 255 memcpy(buf + 5 + hlen, &serverport, sizeof serverport); 256 wlen = 7 + hlen;
|
/src/sys/netinet/ |
in_offload.c | 53 int hlen, len; local in function:tcp4_segment 72 hlen = off + sizeof(*ip); 73 if (m->m_len < hlen) { 74 m = m_pullup(m, hlen); 85 hlen = off + iphlen + sizeof(*th); 86 if (m->m_len < hlen) { 87 m = m_pullup(m, hlen); 94 hlen = off + iphlen + thlen; 98 KASSERT(len > hlen); 100 t = m_split(m, hlen, M_NOWAIT) [all...] |
/src/sys/netipsec/ |
xform_ipip.c | 132 int hlen; local in function:_ipip_input 141 hlen = sizeof(struct ip); 146 hlen = sizeof(struct ip6_hdr); 158 if (m->m_len < hlen) { 159 if ((m = m_pullup(m, hlen)) == NULL) { 197 hlen = sizeof(struct ip); 203 hlen = sizeof(struct ip6_hdr); 218 if (m->m_len < hlen) { 219 if ((m = m_pullup(m, hlen)) == NULL) {
|
ipsec_output.c | 154 int hlen, roff, iphlen; local in function:ipsec_process_done 163 hlen = sizeof(struct udphdr); 169 mo = m_makespace(m, sizeof(struct ip), hlen, &roff); 176 mo = m_makespace(m, sizeof(struct ip6_hdr), hlen, &roff); 191 hlen, ipsec_address(&saidx->dst, buf, sizeof(buf)),
|
xform_esp.c | 306 int plen, alen, hlen, error, stat = ESP_STAT_CRYPTO; local in function:esp_input 334 hlen = sizeof(struct esp) + sav->ivlen; 336 hlen = sizeof(struct newesp) + sav->ivlen; 347 plen = m->m_pkthdr.len - (skip + hlen + alen); 410 crda->crd_len = hlen - sav->ivlen; 468 crde->crd_skip = skip + hlen; 472 crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen); 473 crde->crd_inject = skip + hlen - sav->ivlen; 513 int hlen, skip, protoff; local in function:esp_input_cb 611 hlen = sizeof(struct esp) + sav->ivlen 684 int hlen, rlen, tlen, padlen, blks, alen, i, roff; local in function:esp_output [all...] |
xform_ipcomp.c | 144 int error, hlen = IPCOMP_HLENGTH, stat = IPCOMP_STAT_CRYPTO; local in function:ipcomp_input 146 KASSERT(skip + hlen <= m->m_pkthdr.len); 187 crdc->crd_skip = skip + hlen; 188 crdc->crd_len = m->m_pkthdr.len - (skip + hlen); 195 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen); 249 int hlen = IPCOMP_HLENGTH, clen; local in function:ipcomp_input_cb 282 IPCOMP_STATADD(IPCOMP_STAT_IBYTES, m->m_pkthdr.len - skip - hlen); 294 m->m_pkthdr.len = clen + hlen + skip; 301 if (m->m_len < skip + hlen && (m = m_pullup(m, skip + hlen)) == 0) 360 int error, ralen, hlen, maxpacketsize; local in function:ipcomp_output [all...] |
/src/sys/external/bsd/ipf/netinet/ |
ip_log.c | 383 register size_t hlen; local in function:ipf_log_pkt 402 hlen = (char *)fin->fin_dp - (char *)fin->fin_ip; 410 hlen += MIN(sizeof(tcphdr_t), fin->fin_dlen); 412 hlen += MIN(sizeof(udphdr_t), fin->fin_dlen); 430 hlen += MIN(sizeof(struct icmp) + 8, 434 hlen += MIN(sizeof(struct icmp), 451 hlen += MIN(sizeof(struct icmp6_hdr) + 8, 454 hlen += MIN(sizeof(struct icmp6_hdr), 486 mlen = fin->fin_plen - hlen; 495 ipfl.fl_hlen = (u_char)hlen; [all...] |
/src/usr.sbin/trpt/ |
trpt.c | 523 size_t hlen = sizeof(hardticks); local in function:tcp_trace 526 &hlen, NULL, 0) == -1)
|
/src/usr.bin/xlint/lint1/ |
mem1.c | 328 size_t hlen = strlen(haystack); local in function:str_ends_with 331 return nlen <= hlen && 332 memcmp(haystack + hlen - nlen, needle, nlen) == 0;
|
/src/sys/dev/iscsi/ |
iscsi_send.c | 612 int i, pad, hlen; local in function:setup_tx_uio 621 hlen = (conn->c_HeaderDigest) ? BHS_SIZE + 4 : BHS_SIZE; 624 pdu->pdu_io_vec[0].iov_len = hlen; 631 uio->uio_resid = hlen;
|