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

1 2 3 4 5 6 7

  /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
  /src/sys/lib/libsa/
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);
  /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
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
    [all...]
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 > m->m_len
432 u_int hlen; local
476 u_int hlen, changes; local
    [all...]
  /src/sys/external/isc/libsodium/dist/test/default/
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);
  /src/sys/netinet6/
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_NOWAIT)
    [all...]
  /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, local
423 mtod(m1, u_char *) + roff + hlen, local
    [all...]
xform_ipip.c 132 int hlen; local
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/netmpls/
mpls_ttl.c 319 int hlen, len; local
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
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
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
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/crypto/external/apache2/openssl/dist/providers/implementations/macs/
gmac_prov.c 150 int hlen = 0; local
155 if (!EVP_EncryptFinal_ex(macctx->ctx, out, &hlen))
158 hlen = gmac_size();
160 out, (size_t)hlen);
164 *outl = hlen;
siphash_prov.c 142 size_t hlen = siphash_size(ctx); local
144 if (!ossl_prov_is_running() || outsize < hlen)
147 *outl = hlen;
148 return SipHash_Final(&ctx->siphash, out, hlen);
  /src/crypto/external/bsd/openssl/dist/providers/implementations/macs/
gmac_prov.c 150 int hlen = 0; local
155 if (!EVP_EncryptFinal_ex(macctx->ctx, out, &hlen))
158 hlen = gmac_size();
160 out, (size_t)hlen);
164 *outl = hlen;
siphash_prov.c 142 size_t hlen = siphash_size(ctx); local
144 if (!ossl_prov_is_running() || outsize < hlen)
147 *outl = hlen;
148 return SipHash_Final(&ctx->siphash, out, hlen);
  /src/crypto/external/bsd/openssl.old/dist/crypto/hmac/
hm_pmeth.c 121 unsigned int hlen; local
131 if (!HMAC_Final(hctx->ctx, sig, &hlen))
133 *siglen = (size_t)hlen;
  /src/external/bsd/tcpdump/dist/
print-sl.c 119 u_int hlen; local
156 hlen = IP_HL(ip);
157 ND_TCHECK_SIZE((const struct tcphdr *)&((const int *)ip)[hlen]);
158 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]);
159 lastlen[dir][lastconn] = length - (hlen << 2);
214 u_int flags, hlen; local
252 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
254 * 'length - hlen' is the amount of data in the packet.
257 hlen = IP_HL(ip)
    [all...]
  /src/external/bsd/wpa/dist/src/tls/
tlsv1_record.c 282 size_t i, rlen, hlen; local
451 hlen = sizeof(hash);
452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) {
458 if (hlen != rl->hash_size ||
459 os_memcmp_const(hash, out_data + plen, hlen) != 0 ||
  /src/lib/libedit/
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;
  /src/sys/netinet/
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_NOWAIT)
    [all...]
  /src/usr.bin/nc/
socks.c 193 size_t hlen, wlen; local
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;

Completed in 23 milliseconds

1 2 3 4 5 6 7