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

1 2 3 4 5 6 7 8 9

  /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)
  /src/external/bsd/tcpdump/dist/
print-mobility.c 195 unsigned mhlen, hlen; local
220 hlen = IP6M_MINLEN;
224 hlen = IP6M_MINLEN;
228 GET_BE_U_4(bp + hlen),
229 GET_BE_U_4(bp + hlen + 4));
231 hlen += 8;
236 hlen = IP6M_MINLEN;
240 GET_BE_U_4(bp + hlen),
241 GET_BE_U_4(bp + hlen + 4));
243 hlen += 8
    [all...]
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...]
print-ip.c 328 u_int hlen; local
348 hlen = IP_HL(ip) * 4;
349 ND_ICHECKMSG_ZU("header length", hlen, <, sizeof (struct ip));
362 if (len < hlen) {
363 ND_PRINT("[total length %u < header length %u]", len, hlen);
378 len -= hlen;
427 if ((hlen > sizeof(struct ip))) {
430 hlen - sizeof(struct ip)) == -1) {
437 if (!ndo->ndo_Kflag && ND_TTEST_LEN((const u_char *)ip, hlen)) {
439 vec[0].len = hlen;
486 ip_demux_print(ndo, (const u_char *)ip + hlen, len, 4, local
    [all...]
print-dccp.c 280 u_int hlen; local
314 hlen = GET_U_1(dh->dccph_doff) * 4;
329 ND_PRINT(" %u", len - hlen);
330 if (hlen > len) {
332 hlen, len);
492 if (hlen > fixed_hdrlen){
497 hlen -= fixed_hdrlen;
499 optlen = dccp_print_option(ndo, cp, hlen);
502 if (hlen <= optlen)
504 hlen -= optlen
    [all...]
  /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/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/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...]
  /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/external/bsd/ipf/dist/ipsend/
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...]
  /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/external/mpl/dhcp/dist/common/
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;
  /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/sbin/swapctl/
swaplist.c 95 int hlen, size, inuse, npgbad, ncounted, pathmax, cw; local
159 header = getbsize(&hlen, &blocksize);
167 hlen = strlen(header);
188 if (hlen < cw)
189 hlen = cw;
201 pathmax, "Device", hlen, header, cw, "Used",
219 pathmax, sep->se_path, hlen,
246 pathmax, sep->se_path, hlen, szbuf);
315 pathmax, "Total", hlen, szbuf, cw, usbuf,
320 pathmax, "Total", hlen,
    [all...]
  /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/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/external/bsd/wpa/dist/src/tls/
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 (hsz < hlen)
398 if (crypto_hash_finish(ctx, hash, &hlen) < 0
    [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/net/npf/
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;
612 u_int hlen; local
    [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
218 hlen = ip->ip_hl << 2;
241 rv = ipf_check(&ipfmain, ip, hlen, ifp, (dir == PFIL_OUT), mp);
736 int tlen = 0, hlen; local
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
908 int err, hlen, xtra, iclen, ohlen, avail; local
1100 int len, off, error = 0, hlen, code; local
    [all...]
  /src/external/bsd/libarchive/dist/libarchive/
archive_read_support_filter_rpm.c 43 uint64_t hlen; member in struct:rpm
204 rpm->hlen = 0;
236 rpm->hlen = rpm->hpos + section * 16 + bytes;
242 n = rpm_limit_bytes(rpm->hlen - rpm->hpos,
247 if (rpm->hpos == rpm->hlen)
256 rpm->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;

Completed in 30 milliseconds

1 2 3 4 5 6 7 8 9