HomeSort by: relevance | last modified time | path
    Searched refs:hlen (Results 1 - 25 of 94) sorted by relevancy

1 2 3 4

  /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)
hwaddr.c 150 haddrtoa(u_char *haddr, int hlen)
155 if (hlen > MAXHADDRLEN)
156 hlen = MAXHADDRLEN;
159 while (hlen > 0) {
163 hlen--;
  /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/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/sys/netipsec/
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)
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,
    [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...]
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_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) {
  /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/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/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
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));
  /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...]
tcp_subr.c 418 unsigned hlen = basehlen + sizeof(struct tcphdr); local in function:tcp_init_common
421 if (max_linkhdr + hlen > MHLEN)
423 while ((oldhlen = max_protohdr) < hlen)
424 atomic_cas_uint(&max_protohdr, oldhlen, hlen);
453 int hlen; local in function:tcp_template
457 hlen = sizeof(struct ip);
471 hlen = sizeof(struct ip6_hdr);
482 KASSERT(hlen + sizeof(struct tcphdr) <= MCLBYTES);
485 if (m && m->m_len == hlen + sizeof(struct tcphdr)) {
491 if (m && hlen + sizeof(struct tcphdr) > MHLEN)
609 int hlen; local in function:tcp_respond
2149 u_int hlen; local in function:tcp_hdrsz
    [all...]
  /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/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/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/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/net/npf/
npf_inet.c 473 size_t off, hlen; local in function:npf_cache_ip
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;
612 u_int hlen; local in function:npf_cache_all
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_fil_netbsd.c 189 int (*ipf_checkp)(void *, ip_t *ip, int hlen, void *ifp, int out, mb_t **mp);
201 int rv, hlen; local in function:ipf_check_wrapper
218 hlen = ip->ip_hl << 2;
241 rv = ipf_check(&ipfmain, ip, hlen, ifp, (dir == PFIL_OUT), mp);
736 int tlen = 0, hlen; local in function:ipf_send_reset
755 hlen = (fin->fin_v == 6) ? sizeof(ip6_t) : sizeof(ip_t);
757 hlen = sizeof(ip_t);
766 if (sizeof(*tcp2) + hlen > MHLEN) {
776 m->m_len = sizeof(*tcp2) + hlen;
781 bzero((char *)ip, hlen);
845 int hlen; local in function:ipf_send_ip
908 int err, hlen, xtra, iclen, ohlen, avail; local in function:ipf_send_icmp_err
1100 int len, off, error = 0, hlen, code; local in function:ipf_fastroute
    [all...]
  /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/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/sbin/ping/
ping.c 1071 int hlen, dupflag = 0, dumped; local in function:pr_pack
1081 hlen = ip->ip_hl << 2;
1082 if (hlen < (int)sizeof(*ip) || tot_len < hlen + ICMP_MINLEN) {
1093 net_len = tot_len - hlen;
1094 icp = (struct icmp *)(buf + hlen);
1188 if ((size_t)(tot_len - hlen) >
1219 while (hlen > (int)sizeof(struct ip)) {
1222 hlen = 0;
1225 hlen -= 2
1512 int hlen; local in function:ck_pr_icmph
1765 int hlen; local in function:pr_iph
1837 int hlen; local in function:pr_retip
    [all...]

Completed in 61 milliseconds

1 2 3 4