Searched defs:plen (Results 1 - 25 of 144) sorted by relevance

123456

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintpacket6.c11 u_short plen, *addrs; local
20 plen = ntohs(*((u_short *)buf +2));
23 printf("ip6/%d %d %#x %d", buf[0] & 0xf, plen, flow, p);
28 if (plen >= 4)
37 if (plen >= 4)
H A Dipft_sn.c101 int n, plen, ilen; local
107 plen = (int)ntohl(rec->sp_plen);
108 if (ilen > plen || plen < sizeof(*rec))
111 plen -= sizeof(*rec);
112 n = MIN(plen, ilen);
116 return plen;
/illumos-gate/usr/src/common/crypto/padding/
H A Dpkcs7.c96 * validate it as much as possible. 'plen' is changed to hold the actual
100 pkcs7_decode(uint8_t *padbuf, size_t *plen) argument
106 while (*plen > 0 && (padlen = padbuf[*plen - 1]) == 0)
107 (*plen)--;
113 /* Count back from all padding bytes; lint tag is for *plen-1-i >= 0 */
115 for (i = 0; i < padlen && (*plen - 1 - i) >= 0; i++) {
116 if (padbuf[*plen - 1 - i] != (padlen & 0xff))
119 *plen -= i;
H A Dpkcs1.c114 * validate it as much as possible. 'plen' is changed to hold the actual
118 pkcs1_decode(int method, uint8_t *padbuf, size_t *plen) argument
131 for (i = 2; (*plen - i) > 0; i++) {
137 *plen -= i;
/illumos-gate/usr/src/common/net/wanboot/
H A DparseURL.c120 size_t plen; local
168 plen = strlcpy(url->abspath, ptr, sizeof (url->abspath));
169 if (plen >= sizeof (url->abspath)) {
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_overflow.c91 size_t nb, plen; local
114 plen = t->bt_psize - BTDATAOFF;
119 nb = MIN(sz, plen);
149 size_t nb, plen; local
156 plen = t->bt_psize - BTDATAOFF;
158 p = (char *)p + plen, last = h) {
167 nb = MIN(sz, plen);
201 size_t plen; local
221 for (plen = t->bt_psize - BTDATAOFF;; sz -= plen) {
[all...]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddsparse.c101 long plen; local
105 plen = *blenp;
108 for ( linestart = p; plen > 0; ++p, --plen ) {
110 if ( plen > 1 && *(p+1) == '\n' ) {
112 --plen;
118 if ( plen > 1 && *(p+1) == '\r' ) {
120 --plen;
126 --plen;
127 } while ( plen >
[all...]
H A Dgetdn.c77 size_t plen; local
94 for ( p = ufn, r = ufn; *p; p += plen ) {
95 plen = 1;
99 plen=0;
102 r += (plen = LDAP_UTF8COPY(r,p));
145 r += (plen = LDAP_UTF8COPY(r,p));
201 size_t plen = 0; local
225 p += plen;
226 plen = 1;
232 plen
[all...]
/illumos-gate/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss_utils.c129 int plen; local
135 plen = RNDUP(name->length) + sizeof (int);
136 (*principal) = (rpc_gss_principal_t)kmem_alloc(plen, KM_SLEEP);
139 bzero((caddr_t)(*principal), plen);
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c90 int plen, vno; local
110 plen = (*ptr++ & 0xff);
111 plen = (plen<<8) | (*ptr++ & 0xff);
113 if (plen != packet->length)
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c160 char *plen; local
195 * Note: plen points to the length byte at the
209 (void) mb_fit(mbp, 1, &plen);
210 *plen = 0; /* will update below */
214 *plen = lblen;
220 *plen = lblen;
221 (void) mb_fit(mbp, 1, &plen);
222 *plen = 0;
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_scheme.cc205 int plen; local
206 plen = strlen(purportedname);
211 plen, TRUE)) {
/illumos-gate/usr/src/common/devid/
H A Ddevid_smp.c107 int vlen, plen, slen; local
158 plen = scsi_ascii_inquiry_len(
162 if ((vlen <= 0) || (plen <= 0) || ((slen + 1) != sizeof (sbuf)))
167 raw_id_len = vlen + 1 + plen + 1 + slen;
182 &i_devid->did_id[vlen + 1], plen);
183 i_devid->did_id[vlen + 1 + plen] = '.';
186 bcopy(sbuf, &i_devid->did_id[vlen + 1 + plen + 1], slen);
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_device.c79 uint32_t plen; local
82 plen = request->msg_info;
83 if (plen == 0 || plen > MAXPATHLEN || plen > request_dlen) {
88 path = malloc(plen + 1);
94 (void) strncpy(path, LDMA_HDR2DATA(request), plen);
95 path[plen] = '\0';
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_bios.c176 int i, nnames, plen; local
203 plen = 4;
207 (void) sprintf(buf + plen, "Slot%d", slot[i]);
208 plen += strlen(buf+plen) + 1;
209 *(buf + plen) = 0;
211 for (; plen % 4; plen++)
212 *(buf + plen) = 0;
213 return (plen);
[all...]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprinter.c76 int slen, plen; local
98 plen = strlen(PRINTER_PREFIX);
180 else if (strncmp(attr->attrname, PRINTER_PREFIX, plen)
182 attrname = attr->attrname + plen;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c87 int plen, vno; local
107 plen = (*ptr++ & 0xff);
108 plen = (plen<<8) | (*ptr++ & 0xff);
110 if (plen != packet->length)
/illumos-gate/usr/src/lib/libtecla/common/
H A Dioutil.c166 int plen = prefix_len - pstart; local
167 if(write_fn(data, prefix+pstart, plen) != plen)
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dref_subr.c172 int slen, plen, ncomp; local
178 plen = strlen(path) + 1; /* include the terminator */
183 for (nxtc = path; nxtc < ori_path + plen; nxtc++) {
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_dsa.c386 unsigned plen = 0, qlen = 0, glen = 0, xlen = 0; local
413 (void *) &p, &plen)) {
443 if (plen == 0 || qlen == 0 || glen == 0 || xlen == 0) {
448 if (plen > DSA_MAX_KEY_LEN) {
450 DBG(NULL, DWARN, "dca_dsainit: maximum 1Kbit key (%d)", plen);
472 pbits = dca_bitlen(p, plen);
500 dca_reverse(p, kaddr, plen, padjlen);
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c295 size_t len, plen; local
301 plen = strlen("/devices");
302 if (len < plen) {
305 } else if ((len == plen) &&
310 } else if (strncmp(new_path, "/devices/", plen + 1)) {
315 opts.o_devices_path = new_path + plen;
/illumos-gate/usr/src/boot/sys/boot/i386/libfirewire/
H A Dfwohci.c355 int plen; local
379 plen = OREAD(sc, OHCI_SID_CNT);
381 node_id, (plen >> 16) & 0xff);
391 if (plen & OHCI_SID_ERR) {
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDSA.c126 uint_t plen = sizeof (p); local
131 rv = soft_get_private_value(key, CKA_PRIME, p, &plen);
152 k.prime_bits = CRYPTO_BYTES2BITS(plen);
177 uint_t plen = sizeof (p); local
181 rv = soft_get_public_value(key, CKA_PRIME, p, &plen);
202 k.prime_bits = CRYPTO_BYTES2BITS(plen);
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss_utils.c151 int nlen = 0, slen = 0, plen; local
222 plen = RNDUP(name_buf.length) + sizeof (int);
223 (*principal) = malloc(plen);
228 bzero((caddr_t)(*principal), plen);
/illumos-gate/usr/src/lib/libscf/common/
H A Dscf_type.c263 int plen; local
268 plen = 32; /* bit size of an IPv4 */
273 plen = 128; /* bit size of an IPv6 */
283 if (check_net_prefix(++net_prefix, plen) == 0)

Completed in 72 milliseconds

123456