Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 111) sorted by relevance

12345

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Drandom.c87 size_t left = dlen; in readn_nointr()
112 size_t left = dlen; in writen_nointr()
219 n = readn_nointr(*fd, dbuf, dlen); in pkcs11_read_common()
246 n = writen_nointr(*fd, dbuf, dlen); in pkcs11_write_common()
256 dbuf, dlen)); in pkcs11_write_random_seed()
263 dbuf, dlen)); in pkcs11_write_urandom_seed()
319 if (dbuf == NULL || dlen == 0) in pkcs11_get_random()
326 if (pkcs11_read_random(dbuf, dlen) == dlen) in pkcs11_get_random()
338 if (dbuf == NULL || dlen == 0) in pkcs11_get_urandom()
345 if (pkcs11_read_urandom(dbuf, dlen) == dlen) in pkcs11_get_urandom()
[all …]
H A Dkeyfile.c47 pkcs11_read_data(char *filename, void **dbuf, size_t *dlen) in pkcs11_read_data() argument
56 if (filename == NULL || dbuf == NULL || dlen == NULL) in pkcs11_read_data()
77 filesize = *dlen; in pkcs11_read_data()
90 *dlen = 0; in pkcs11_read_data()
142 *dlen = filesize; in pkcs11_read_data()
H A Dcryptoutil.h218 extern int pkcs11_get_random(void *dbuf, size_t dlen);
219 extern int pkcs11_get_urandom(void *dbuf, size_t dlen);
220 extern int pkcs11_get_nzero_urandom(void *dbuf, size_t dlen);
221 extern int pkcs11_read_data(char *filename, void **dbuf, size_t *dlen);
224 extern ssize_t readn_nointr(int fd, void *dbuf, size_t dlen);
225 extern ssize_t writen_nointr(int fd, void *dbuf, size_t dlen);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rport.c226 int dlen) in interpret_syslog() argument
242 int datalen = dlen; in interpret_syslog()
284 datalen = dlen; in interpret_syslog()
316 char *data, int dlen) in interpret_reserved() argument
368 if (dlen > 0) { in interpret_reserved()
373 dlen); in interpret_reserved()
381 dlen); in interpret_reserved()
389 dlen); in interpret_reserved()
396 dlen); in interpret_reserved()
421 dlen); in interpret_reserved()
[all …]
H A Dsnoop_trill.c43 int dlen = *alen; in interpret_trill() local
47 if (dlen < sizeof (trill_header_t)) { in interpret_trill()
57 show_header("TRILL: ", "TRILL Data Frame", dlen); in interpret_trill()
77 if (dlen < trillhdrlen) { in interpret_trill()
83 dlen -= trillhdrlen; in interpret_trill()
85 if (dlen < sizeof (struct ether_header)) { in interpret_trill()
110 dlen, VLAN_ID(inner_ethvlanhdr->ether_tci), in interpret_trill()
114 *alen = dlen; in interpret_trill()
H A Dsnoop_sctp.c336 if (dlen < sizeof (*cid)) { in parse_asconfok_param()
352 if (dlen < sizeof (*cid)) { in parse_asconferr_param()
370 interpret_params(data, dlen, "Parameter", in parse_addiperr_param()
381 if (dlen < sizeof (*cid)) { in parse_addip_param()
455 if (dlen < 2) { in parse_suppaddr_param()
462 while (dlen > 0) { in parse_suppaddr_param()
481 dlen -= sizeof (*type); in parse_suppaddr_param()
490 if (dlen < sizeof (sctp_parm_hdr_t)) { in parse_encap_param()
496 interpret_params(data, dlen, "Parameter", in parse_encap_param()
1197 show_header(pbuf, p->pid_long, dlen); in interpret_protoid()
[all …]
H A Dsnoop_isis.c48 interpret_isis(int flags, char *data, int dlen, boolean_t istrill) in interpret_isis() argument
82 pdutype, dlen); in interpret_isis()
88 "Core TRILL IS-IS Frame", dlen); in interpret_isis()
91 "IS-IS Frame", dlen); in interpret_isis()
H A Dsnoop_bpdu.c54 interpret_bpdu(int flags, char *data, int dlen) in interpret_bpdu() argument
59 if (dlen < 4) { in interpret_bpdu()
69 "Bridge PDU T:%d L:%d", cb->cb_type, dlen); in interpret_bpdu()
74 "Bridge PDU Frame", dlen); in interpret_bpdu()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dpaste.c107 for(d=n; d>dlen; d-=dlen) in paste()
130 if(d >= dlen) in paste()
156 if(dlen) in spaste()
159 if(d >= dlen) in spaste()
182 int dlen, dsiz; in b_paste() local
223 dlen = 0; in b_paste()
227 dlen++; in b_paste()
229 if(dlen < dsiz) in b_paste()
237 dlen = 0; in b_paste()
242 mp[dlen].len = cp - mp[dlen].chr; in b_paste()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrxfrm.c41 size_t dlen, locale_t loc) in strxfrm_l() argument
48 if (dlen > 0) in strxfrm_l()
69 if ((xlen = _collate_sxfrm(wcs, xf, dlen, loc)) == (size_t)-1) in strxfrm_l()
75 if (dlen > xlen) { in strxfrm_l()
77 } else if (dlen) { in strxfrm_l()
78 xf[dlen-1] = 0; in strxfrm_l()
87 (void) strlcpy(xf, src, dlen); in strxfrm_l()
93 strxfrm(char *_RESTRICT_KYWD xf, const char *_RESTRICT_KYWD src, size_t dlen) in strxfrm() argument
95 return (strxfrm_l(xf, src, dlen, uselocale(NULL))); in strxfrm()
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c209 ulong_t slen, dlen; in do_comp() local
214 dlen = dstlen; in do_comp()
221 if (write(dstfd, dstbuf, dlen) != dlen) { in do_comp()
227 offset += dlen; in do_comp()
252 ulong_t slen, dlen; in do_decomp() local
282 dlen = blksize; in do_decomp()
290 if (dlen != blksize) { in do_decomp()
294 if (write(dstfd, dstbuf, dlen) != dlen) { in do_decomp()
302 dlen = blksize; in do_decomp()
309 if (write(dstfd, dstbuf, dlen) != dlen) { in do_decomp()
[all …]
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_raudio_pxy.c106 int off, dlen; local
125 dlen = fin->fin_plen - off;
127 dlen = MSGDSIZE(m) - off;
129 if (dlen <= 0)
132 if (dlen > sizeof(membuf))
133 dlen = sizeof(membuf);
213 int off, dlen, slen; local
240 dlen = MSGDSIZE(m) - off;
242 if (dlen <= 0)
246 dlen = sizeof(membuf);
[all …]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_debug.c247 if (dlen == 4) {
250 cp += dlen;
257 cp += dlen;
261 cp += dlen;
312 cp2 = cp1 + dlen;
335 cp += dlen;
340 if (dlen == 4) {
376 if (dlen < NumBytes) NumBytes = dlen;
382 cp += dlen;
389 cp += dlen;
[all …]
/illumos-gate/usr/src/boot/libsa/string/
H A Dstrlcat.c38 size_t dlen; in strlcat() local
43 dlen = dst - odst; in strlcat()
44 n = dsize - dlen; in strlcat()
47 return(dlen + strlen(src)); in strlcat()
57 return(dlen + (src - osrc)); /* count does not include NUL */ in strlcat()
/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_vnops.c215 int dlen, ret; in bootfs_readdir() local
247 dlen = DIRENT64_RECLEN(1); in bootfs_readdir()
249 if (dlen > brem) { in bootfs_readdir()
260 brem -= dlen; in bootfs_readdir()
264 dlen = DIRENT64_RECLEN(2); in bootfs_readdir()
266 if (dlen > brem) { in bootfs_readdir()
277 brem -= dlen; in bootfs_readdir()
290 dlen = DIRENT64_RECLEN(nlen); in bootfs_readdir()
291 if (dlen > brem) { in bootfs_readdir()
304 DIRENT64_NAMELEN(dlen)); in bootfs_readdir()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c98 int arglen, dlen, flen; in main() local
126 dlen = strlen(dname); in main()
134 if ((fpath = (char *)malloc(dlen + 1 + flen + 1)) == NULL) in main()
136 (void) memset(fpath, '\0', dlen + 1 + flen + 1); in main()
138 (void) strncpy(fpath, dname, dlen); in main()
139 fpath[dlen] = '/'; in main()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dkrb5ssp.c291 int dlen, rc; in krb5ssp_get_reply() local
300 dlen = m->m_len; in krb5ssp_get_reply()
309 0, dlen, &token_len, &actual_len); in krb5ssp_get_reply()
314 if (dlen < actual_len) in krb5ssp_get_reply()
317 dlen -= actual_len; in krb5ssp_get_reply()
321 dlen, &actual_len); in krb5ssp_get_reply()
326 if (dlen < actual_len) in krb5ssp_get_reply()
329 dlen -= actual_len; in krb5ssp_get_reply()
336 if (dlen < 2) in krb5ssp_get_reply()
339 dlen -= 2; in krb5ssp_get_reply()
[all …]
H A Dntlm.c387 int ulen, dlen; in ntlm_v2_hash() local
401 dlen = strlen(destination); in ntlm_v2_hash()
402 utf8data = malloc(ulen + dlen + 1); in ntlm_v2_hash()
406 bcopy(destination, utf8data + ulen, dlen + 1); in ntlm_v2_hash()
443 size_t dlen; in ntlm_v2_resp_hash() local
447 dlen = 8 + cdlen; in ntlm_v2_resp_hash()
448 data = malloc(dlen); in ntlm_v2_resp_hash()
454 HMACT64(rhash, v2hash, NTLM_HASH_SZ, data, dlen); in ntlm_v2_resp_hash()
/illumos-gate/usr/src/lib/libmapid/common/
H A Dmapid.c272 int dlen; in resolv_skip_rr() local
299 dlen = ns_get16(p); in resolv_skip_rr()
301 p += dlen; /* dlen */ in resolv_skip_rr()
393 int dlen; in resolv_decode() local
473 dlen = ns_get16(p); in resolv_decode()
476 if ((p + dlen) > eom) in resolv_decode()
481 resolve_process_txt(p, dlen); in resolv_decode()
490 p += dlen; in resolv_decode()
533 int dlen = 0; in domain_sync() local
542 dlen = strlen(dname); in domain_sync()
[all …]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c129 int rv, dlen; in crypto_digest_data() local
139 dlen = data->cd_length; in crypto_digest_data()
148 update(dctx, dptr, dlen); in crypto_digest_data()
154 rv = crypto_uio_data(data, NULL, dlen, in crypto_digest_data()
158 rv = crypto_uio_data(data, NULL, dlen, in crypto_digest_data()
162 rv = crypto_uio_data(data, NULL, dlen, in crypto_digest_data()
172 rv = crypto_mblk_data(data, NULL, dlen, in crypto_digest_data()
176 rv = crypto_mblk_data(data, NULL, dlen, in crypto_digest_data()
180 rv = crypto_mblk_data(data, NULL, dlen, in crypto_digest_data()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c201 poe_tag_insert(poep_t *poep, uint16_t ttype, const void *data, size_t dlen) in poe_tag_insert() argument
208 dlen = 0; in poe_tag_insert()
209 if (sizeof (*poep) + plen + POET_HDRLEN + dlen > PPPOE_MSGMAX) in poe_tag_insert()
213 POET_SET_LENG(dp, dlen); in poe_tag_insert()
214 if (dlen > 0) in poe_tag_insert()
215 (void) memcpy(POET_DATA(dp), data, dlen); in poe_tag_insert()
216 poep->poep_length = htons(plen + POET_HDRLEN + dlen); in poe_tag_insert()
/illumos-gate/usr/src/common/devid/
H A Ddevid_scsi.c309 int dlen = 0; in is_page83_data_valid() local
369 dlen = dblk[3]; in is_page83_data_valid()
370 if (dlen == 0) { in is_page83_data_valid()
415 if ((dlen != 8) && (dlen != 12) && (dlen != 16)) { in is_page83_data_valid()
432 if (dlen != 8) { in is_page83_data_valid()
450 if (dlen != 16) { in is_page83_data_valid()
474 if (dlen != 4) { in is_page83_data_valid()
481 if (dlen != 4) { in is_page83_data_valid()
488 if (dlen != 4) { in is_page83_data_valid()
495 if (dlen != 16) { in is_page83_data_valid()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsasl.c153 unsigned dlen, blen; in nsldapi_sasl_read() local
180 dlen = 0; in nsldapi_sasl_read()
183 while ( dlen < 4 ) { in nsldapi_sasl_read()
186 s, cp, 4 - dlen, in nsldapi_sasl_read()
199 dlen += ret; in nsldapi_sasl_read()
209 dlen = ret - dlen; in nsldapi_sasl_read()
212 while ( dlen > 0 ) { in nsldapi_sasl_read()
215 s, cp, dlen, in nsldapi_sasl_read()
230 dlen -= ret; in nsldapi_sasl_read()
236 &dbuf, &dlen); in nsldapi_sasl_read()
[all …]
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c239 int dlen; local
285 dlen = s - buf;
294 if (dlen > argp->buf.buflen) {
297 (void) strncpy(argp->buf.buffer, buf, dlen);
299 argp->returnlen = dlen;
303 parsestat = (*argp->str2ent)(buf, dlen,
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_espc.c481 int dlen; in npi_espc_vpd_info_get() local
522 dlen = vpd_rd(handle, ep + 4); in npi_espc_vpd_info_get()
524 "model", dlen, vpdp->model)) { in npi_espc_vpd_info_get()
529 "board-model", dlen, in npi_espc_vpd_info_get()
535 "version", dlen, vpdp->ver)) { in npi_espc_vpd_info_get()
544 dlen = vpd_rd(handle, ep + 4); in npi_espc_vpd_info_get()
546 "local-mac-address", dlen, in npi_espc_vpd_info_get()
552 "num-mac-addresses", dlen, in npi_espc_vpd_info_get()
557 dlen = vpd_rd(handle, ep + 4); in npi_espc_vpd_info_get()
559 "phy-type", dlen, in npi_espc_vpd_info_get()

12345