/netbsd-current/usr.sbin/bootp/common/ |
H A D | 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)
|
/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | print-mobility.c | 215 unsigned mhlen, hlen; local 252 hlen = IP6M_MINLEN; 256 hlen = IP6M_MINLEN; 260 GET_BE_U_4(bp + hlen), 261 GET_BE_U_4(bp + hlen + 4)); 263 hlen += 8; 268 hlen = IP6M_MINLEN; 272 GET_BE_U_4(bp + hlen), 273 GET_BE_U_4(bp + hlen + 4)); 275 hlen [all...] |
H A D | print-sl.c | 121 u_int hlen; local 158 hlen = IP_HL(ip); 159 ND_TCHECK_SIZE((const struct tcphdr *)&((const int *)ip)[hlen]); 160 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); 161 lastlen[dir][lastconn] = length - (hlen << 2); 216 u_int flags, hlen; local 254 * 'hlen' is the length of the uncompressed TCP/IP header (in words). 256 * 'length - hlen' is the amount of data in the packet. 259 hlen [all...] |
H A D | print-ip.c | 330 u_int hlen; local 356 hlen = IP_HL(ip) * 4; 357 if (hlen < sizeof (struct ip)) { 358 ND_PRINT("bad-hlen %u", hlen); 366 if (len < hlen) { 390 len -= hlen; 436 if ((hlen - sizeof(struct ip)) > 0) { 439 hlen - sizeof(struct ip)) == -1) { 446 if (!ndo->ndo_Kflag && (const u_char *)ip + hlen < 492 ip_demux_print(ndo, (const u_char *)ip + hlen, len, 4, local [all...] |
H A D | print-dccp.c | 282 u_int hlen; local 316 hlen = GET_U_1(dh->dccph_doff) * 4; 331 ND_PRINT(" %u", len - hlen); 332 if (hlen > len) { 334 hlen, len); 494 if (hlen > fixed_hdrlen){ 499 hlen -= fixed_hdrlen; 501 optlen = dccp_print_option(ndo, cp, hlen); 504 if (hlen <= optlen) 506 hlen 538 dccp_print_option(netdissect_options *ndo, const u_char *option, u_int hlen) argument [all...] |
/netbsd-current/sys/net/ |
H A D | rss_config.c | 95 int hlen; local 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 196 int hlen; local [all...] |
H A D | slcompress.c | 178 u_int hlen = ip->ip_hl; local 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 > 432 u_int hlen; local 476 u_int hlen, changes; local [all...] |
/netbsd-current/usr.bin/systat/ |
H A D | swap.c | 78 void showspace(char *header, int hlen, long blocksize); 81 static int hlen, nswap, rnswap; variable 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);
|
/netbsd-current/sys/netipsec/ |
H A D | ipsec_mbuf.c | 180 * Make space for a new header of length hlen at skip bytes 188 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) argument 195 KASSERTMSG(hlen < MHLEN, "hlen too big: %u", hlen); 211 if (hlen > M_TRAILINGSPACE(m)) { 242 if (hlen <= M_TRAILINGSPACE(m) + remain) { 243 m->m_len = skip + hlen; 264 n->m_len = hlen; 278 memmove(mtod(m, char *) + skip + hlen, local 365 m_striphdr(struct mbuf *m, int skip, int hlen) argument 423 mtod(m1, u_char *) + roff + hlen, local [all...] |
/netbsd-current/sys/netinet6/ |
H A D | in6_offload.c | 56 int hlen; local 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_NOWAI [all...] |
/netbsd-current/external/bsd/ipf/dist/ipsend/ |
H A D | ip.c | 166 int i, sent = 0, ts, hlen, olen; local 168 hlen = IP_HL(ip) << 2; 169 if (mtu < (hlen + 8)) { 171 mtu, hlen); 206 s = (char *)ip + hlen; 207 iplen = ntohs(ip->ip_len) - hlen; 212 if ((sent + (mtu - hlen)) >= iplen) 218 ts = (mtu - hlen); 221 ts += hlen; 224 ip->ip_sum = chksum((u_short *)ip, hlen); 257 int thlen, i, iplen, hlen; local [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | power_budget.h | 18 u8 hlen; member in struct:nvbios_power_budget
|
H A D | vpstate.h | 10 u8 hlen; member in struct:nvbios_vpstate_header
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
H A D | nouveau_nvkm_subdev_bios_vpstate.c | 59 h->hlen = nvbios_rd08(b, h->offset + 0x1); 66 if (h->hlen > 0x10) 70 if (h->hlen > 0x11) 89 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount));
|
/netbsd-current/external/mpl/dhcp/dist/common/ |
H A D | ethernet.c | 51 if (to && to -> hlen == 7) /* XXX */ 56 if (interface -> hw_address.hlen - 1 == sizeof (eh.ether_shost)) 88 from -> hlen = (sizeof eh.ether_shost) + 1;
|
/netbsd-current/sys/netinet/ |
H A D | in_offload.c | 53 int hlen, len; local 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_NOWAI [all...] |
/netbsd-current/sys/lib/libsa/ |
H A D | ip.c | 124 size_t hlen; local 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);
|
/netbsd-current/usr.sbin/npf/npftest/ |
H A D | npfstream.c | 43 unsigned hlen, tcpdlen; local 55 hlen = ip->ip_hl << 2; 56 p = (const uint8_t *)ip + hlen; 59 tcpdlen = ntohs(ip->ip_len) - hlen - (th->th_off << 2);
|
/netbsd-current/sys/external/isc/libsodium/dist/test/default/ |
H A D | metamorphic.c | 15 size_t hlen; local 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);
|
/netbsd-current/sbin/swapctl/ |
H A D | swaplist.c | 64 int hlen, size, inuse, ncounted, pathmax; local 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,
|
/netbsd-current/external/bsd/wpa/dist/src/tls/ |
H A D | tlsv1_common.c | 344 size_t hlen; local 351 hlen = SHA256_MAC_LEN; 355 hlen = 48; 359 hlen = 64; 370 if (crypto_hash_finish(ctx, hash, &hlen) < 0) 373 return hlen; 384 size_t hlen; local 395 hlen = MD5_MAC_LEN; 396 if (crypto_hash_finish(ctx, hash, &hlen) < 0) 398 hpos += hlen; [all...] |
/netbsd-current/sys/net/npf/ |
H A D | npf_inet.c | 473 size_t off, hlen; local 486 hlen = sizeof(struct ip6_hdr); 488 npc->npc_hlen = hlen; 496 while ((ip6e = nbuf_advance(nbuf, hlen, sizeof(*ip6e))) != NULL) { 504 hlen = (ip6e->ip6e_len + 1) << 3; 516 hlen = sizeof(struct ip6_frag); 520 hlen = 0; 525 hlen = 0; 529 if (!hlen) { 533 npc->npc_hlen += hlen; 566 npf_cache_tcp(npf_cache_t *npc, nbuf_t *nbuf, unsigned hlen) argument 592 u_int hlen; local [all...] |
/netbsd-current/sys/external/bsd/ipf/netinet/ |
H A D | ip_fil_netbsd.c | 186 int (*ipf_checkp)(void *, ip_t *ip, int hlen, void *ifp, int out, mb_t **mp); 198 int rv, hlen; local 215 hlen = ip->ip_hl << 2; 238 rv = ipf_check(&ipfmain, ip, hlen, ifp, (dir == PFIL_OUT), mp); 733 int tlen = 0, hlen; local 752 hlen = (fin->fin_v == 6) ? sizeof(ip6_t) : sizeof(ip_t); 754 hlen = sizeof(ip_t); 763 if (sizeof(*tcp2) + hlen > MHLEN) { 773 m->m_len = sizeof(*tcp2) + hlen; 778 bzero((char *)ip, hlen); 842 int hlen; local 905 int err, hlen, xtra, iclen, ohlen, avail; local 1097 int len, off, error = 0, hlen, code; local 2170 ipf_pcksum(fr_info_t *fin, int hlen, u_int sum) argument [all...] |
/netbsd-current/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_read_support_filter_rpm.c | 43 size_t hlen; member in struct:rpm 197 rpm->hlen = 0; 230 rpm->hlen = 16 + section * 16 + bytes; 236 n = rpm->hlen - rpm->hpos; 242 if (rpm->hpos == rpm->hlen) 251 rpm->hlen = 0;
|
/netbsd-current/lib/libedit/ |
H A D | hist.c | 105 size_t blen, hlen; local 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;
|