Searched refs:hlen (Results 1 - 25 of 195) sorted by relevance

12345678

/netbsd-current/usr.sbin/bootp/common/
H A Dhwaddr.h11 * 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 Dprint-mobility.c215 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 Dprint-sl.c121 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 Dprint-ip.c330 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 Dprint-dccp.c282 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 Drss_config.c95 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 Dslcompress.c178 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 Dswap.c78 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 Dipsec_mbuf.c180 * 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 Din6_offload.c56 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 Dip.c166 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 Dpower_budget.h18 u8 hlen; member in struct:nvbios_power_budget
H A Dvpstate.h10 u8 hlen; member in struct:nvbios_vpstate_header
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
H A Dnouveau_nvkm_subdev_bios_vpstate.c59 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 Dethernet.c51 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 Din_offload.c53 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 Dip.c124 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 Dnpfstream.c43 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 Dmetamorphic.c15 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 Dswaplist.c64 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 Dtlsv1_common.c344 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 Dnpf_inet.c473 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 Dip_fil_netbsd.c186 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 Darchive_read_support_filter_rpm.c43 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 Dhist.c105 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;

Completed in 423 milliseconds

12345678