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

1 2

  /src/tests/rump/rumpkern/
t_modcmd.c 67 size_t alen; local in function:disable_autoload
73 alen = sizeof(ans);
78 if (rump_sys___sysctl(mib, 2, ans, &alen, &q, sizeof(q)) == -1)
92 if (rump_sys___sysctl(mib, 3, ans, &alen, &q, sizeof(q)) == -1)
106 alen = 0;
107 if (rump_sys___sysctl(mib, 3, NULL, &alen, &no, sizeof(no)) == -1)
  /src/lib/libc/gen/
extattr.c 103 size_t alen; local in function:extattr_copy_fd
133 for (i = 0; i < (size_t)llen; i += alen + 1) {
137 alen = ((uint8_t *)alist)[i];
139 (void)memcpy(aname, ap, alen);
140 aname[alen] = '\0';
173 size_t alen; local in function:extattr_copy_file
203 for (i = 0; i < (size_t)llen; i += alen + 1) {
207 alen = ((uint8_t *)alist)[i];
209 (void)memcpy(aname, ap, alen);
210 aname[alen] = '\0'
243 size_t alen; local in function:extattr_copy_link
    [all...]
  /src/lib/libc/net/
getifaddrs.c 89 size_t len, alen; local in function:__weak_alias
136 alen = 0;
144 alen = len;
156 dcnt += alen;
231 alen = 0;
239 alen = len;
264 memset(data, 0, alen);
265 data += alen;
  /src/sys/net/npf/
npf_bpf.c 111 const u_int alen = npc->npc_alen; local in function:npf_bpf_prepare
112 const uint32_t ver = (alen & 4) | ((alen >> 4) * 6);
npf_ifaddr.c 130 int alen = 0; local in function:npf_ifaddr_sync
134 alen = sizeof(struct in_addr);
139 alen = sizeof(struct in6_addr);
142 if (alen) {
144 memcpy(&addr, p, alen);
145 npf_table_insert(t, alen, &addr, NPF_NO_NETMASK);
npf_connkey.c 41 * | alen | proto | ckey | src-id | dst-id | src-addr | dst-addr |
47 * the 'alen' field. The length is in words and is either 1 or 4,
85 npf_connkey_setkey(npf_connkey_t *key, unsigned alen, unsigned proto,
101 KASSERT((alen >> 2) <= 0xf && proto <= 0xff);
102 k[0] = ((uint32_t)(alen >> 2) << 28) | (proto << 20);
105 if (__predict_true(alen == sizeof(in_addr_t))) {
110 const unsigned nwords = alen >> 2;
111 memcpy(&k[2], ips[isrc], alen);
112 memcpy(&k[2 + nwords], ips[idst], alen);
118 npf_connkey_getkey(const npf_connkey_t *key, unsigned *alen, unsigned *proto
183 const unsigned alen = NPF_CONNKEY_ALEN(key); local in function:npf_conn_adjkey
207 const unsigned alen = NPF_CONNKEY_ALEN(skey); local in function:npf_connkey_copy
232 const unsigned alen = npc->npc_alen; local in function:npf_conn_conkey
316 unsigned alen, proto, ifid, di; local in function:npf_connkey_export
383 unsigned alen, proto, ifid, di; local in function:npf_connkey_print
    [all...]
npf_conn.c 47 * - npf_conn_getbackkey(con, alen) -- for the backwards stream.
129 #define NPF_CONNCACHE(alen) (((alen) >> 4) & 0x1)
427 const unsigned alen = npc->npc_alen; local in function:npf_conn_establish
428 const unsigned idx = NPF_CONNCACHE(alen);
458 con->c_alen = alen;
468 bk = npf_conn_getbackkey(con, alen);
815 unsigned flags, alen; local in function:npf_conn_export
831 alen = NPF_CONNKEY_ALEN(fw);
832 KASSERT(alen == con->c_alen)
861 unsigned flags, alen, idx; local in function:npf_conn_import
    [all...]
  /src/tests/net/if_loop/
t_pr.c 120 size_t alen; local in function:enable_locsums
127 alen = sizeof(ans);
132 if (rump_sys___sysctl(mib, 4, ans, &alen, &q, sizeof(q)) == -1)
  /src/libexec/httpd/
auth-bozo.c 154 ssize_t alen; local in function:bozo_auth_check_headers
160 alen = base64_decode((unsigned char *)str + 6,
164 if (alen != -1)
165 authbuf[alen] = '\0';
166 if (alen == -1 ||
  /src/lib/libpthread/
pthread_tsd.c 89 size_t alen; local in function:pthread_tsd_init
113 alen = *tlen
117 arena = mmap(NULL, alen, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
  /src/usr.sbin/npf/npftest/libnpftest/
npf_table_test.c 69 const int alen = sizeof(struct in_addr); local in function:check_ip4
71 return memcmp(addr, test_addr, alen) == 0;
78 const int alen = sizeof(struct in_addr); local in function:ip4list_insert_lookup
82 error = npf_table_insert(t, alen, addr, NPF_NO_NETMASK);
84 error = npf_table_lookup(t, alen, addr);
93 const int alen = sizeof(struct in_addr); local in function:fill_with_ip4
103 error = npf_table_insert(t, alen, addr, nm);
105 error = npf_table_insert(t, alen, addr, nm);
109 error = npf_table_insert(t, alen, addr, nm);
111 error = npf_table_insert(t, alen, addr, nm)
121 const size_t alen = sizeof(struct in_addr); local in function:verify_ip4
156 const int alen = sizeof(struct in_addr); local in function:clear_ip4
188 const int alen = sizeof(struct in_addr); local in function:test_basic
233 const int alen = sizeof(struct in_addr); local in function:test_nocopy
267 const size_t alen = sizeof(struct in6_addr); local in function:test_ip6
299 const size_t alen = sizeof(struct in_addr); local in function:test_lpm_masks4
322 const size_t alen = sizeof(struct in6_addr); local in function:test_lpm_masks6
377 const int alen = sizeof(struct in_addr); local in function:test_const_table
    [all...]
  /src/bin/sh/
memalloc.c 357 size_t len, tlen = 0, alen[8]; local in function:ststrcat
366 if (n < sizeof(alen)/sizeof(alen[0]))
367 alen[n++] = len;
386 if (n < sizeof(alen)/sizeof(alen[0]))
387 len = alen[n++];
input.c 459 int alen; local in function:popstring
461 if ((alen = strlen(sp->ap->val)) > 0 &&
462 (sp->ap->val[alen - 1] == ' ' ||
463 sp->ap->val[alen - 1] == '\t'))
  /src/usr.sbin/npf/npftest/
npftest.c 135 int alen, fd; local in function:generate_test_cdb
147 addr = inet_addr("192.168.1.1"), alen = sizeof(struct in_addr);
148 if (cdbw_put(cdbw, &addr, alen, &addr, alen) == -1)
151 addr = inet_addr("10.0.0.2"), alen = sizeof(struct in_addr);
152 if (cdbw_put(cdbw, &addr, alen, &addr, alen) == -1)
  /src/lib/libterminfo/
compile.c 369 size_t buflen, len, alen, dlen; local in function:_ti_flatten
377 alen = 0;
379 alen = strlen(tic->alias) + 1;
387 sizeof(uint16_t) + alen +
402 _ti_encode_count_str(&cap, tic->alias, alen);
  /src/lib/libwrap/
hosts_access.c 475 size_t alen; local in function:masked_match6
518 alen = sizeof(mask.sin.sin_addr);
522 alen = sizeof(mask.sin6.sin6_addr);
527 if (masklen / 8 > alen)
570 alen = sizeof(net.sin.sin_addr);
576 alen = sizeof(net.sin6.sin6_addr);
582 for (i = 0; i < alen; i++)
588 for (i = 0; i < alen; i++)
594 return (memcmp(ap, np, alen) == 0);
  /src/sys/arch/arm/nvidia/
tegra_cec.c 405 ssize_t alen = -1; local in function:tegra_cec_recv
418 alen = sc->sc_rxlen;
425 return alen;
  /src/tests/crypto/libcrypto/ecdh/
ecdhtest.c 130 int i, alen, blen, aout, bout, ret = 0; local in function:test_ecdh_curve
218 alen = KDF1_SHA1_len;
219 abuf = (unsigned char *)OPENSSL_malloc(alen);
221 ECDH_compute_key(abuf, alen, EC_KEY_get0_public_key(b), a, KDF1_SHA1);
  /src/usr.bin/login/
common.c 171 socklen_t alen; local in function:update_db
176 alen = sizeof(ass);
177 if (getpeername(STDIN_FILENO, (struct sockaddr *)&ass, &alen) != -1) {
184 if (memcmp(&ass, &ss, alen) != 0)
  /src/sys/netipsec/
xform_esp.c 306 int plen, alen, hlen, error, stat = ESP_STAT_CRYPTO; local in function:esp_input
338 alen = esph ? esph->authsize : 0;
347 plen = m->m_pkthdr.len - (skip + hlen + alen);
384 size_t extra __diagused = esph == NULL ? 0 : alen;
412 crda->crd_len = m->m_pkthdr.len - (skip + alen);
413 crda->crd_inject = m->m_pkthdr.len - alen;
426 m_copydata(m, m->m_pkthdr.len - alen, alen, (tc + 1));
472 crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen);
684 int hlen, rlen, tlen, padlen, blks, alen, i, roff local in function:esp_output
    [all...]
  /src/common/lib/libprop/
prop_data.c 638 size_t len, alen; local in function:_prop_data_internalize
687 if (_prop_data_internalize_decode(ctx, buf, len + 1, &alen,
692 if (alen != len) {
707 if (alen == 0) {
prop_string.c 666 size_t len, alen; local in function:_prop_string_internalize
689 if (_prop_intern_decode_string(ctx, str, len, &alen,
691 alen != len) {
  /src/usr.sbin/npf/npfctl/
npf_cmd.c 309 int n, alen; local in function:npfctl_table
348 if (!npfctl_parse_cidr(arg, &fam, &alen)) {
351 nct.nct_data.ent.alen = alen;
352 memcpy(&nct.nct_data.ent.addr, &fam.fam_addr, alen);
385 if (!ent->alen)
387 buf = npfctl_print_addrmask(ent->alen, "%a",
407 unsigned alen; member in struct:__anon353fbb410108
418 npfctl_conn_print(unsigned alen, const npf_addr_t *a, const in_port_t *p,
431 if (alen != fil->alen)
485 unsigned alen = 0; local in function:npfctl_conn_list
    [all...]
  /src/sys/dev/ic/
lemac.c 684 int alen = (~txoff & 3);
685 LEMAC_PUTBUF8(sc, txoff, alen,
687 cp += alen;
688 txoff += alen;
689 len -= alen;
703 int alen = (~txoff & 1);
704 LEMAC_PUTBUF8(sc, txoff, alen,
706 cp += alen;
707 txoff += alen;
708 len -= alen;
691 int alen = (~txoff & 1); local in function:lemac_ifstart
    [all...]
  /src/lib/libc/rpc/
svc_dg.c 190 socklen_t alen; local in function:svc_dg_recv
201 alen = sizeof (struct sockaddr_storage);
203 (struct sockaddr *)(void *)&ss, &alen);
208 if (xprt->xp_rtaddr.len < alen) {
211 xprt->xp_rtaddr.buf = mem_alloc(alen);
212 xprt->xp_rtaddr.len = alen;
214 memcpy(xprt->xp_rtaddr.buf, &ss, alen);
230 (struct sockaddr *)(void *)&ss, alen);

Completed in 23 milliseconds

1 2