Searched defs:tlen (Results 1 - 25 of 77) sorted by relevance

1234

/external/ppp/pppd/plugins/rp-pppoe/
H A Dcommon.c174 int i, tag, tlen, text; local
217 for (i = 0; i + TAG_HDR_SIZE <= len; i += tlen) {
219 tlen = (packet->payload[i+2] << 8) + packet->payload[i+3];
220 if (i + tlen + TAG_HDR_SIZE > len)
267 if (tlen) {
269 printer(arg, " %.*v", tlen, &packet->payload[i]);
270 else if (tlen <= 32)
271 printer(arg, " %.*B", tlen, &packet->payload[i]);
274 &packet->payload[i], tlen);
/external/ImageMagick/coders/
H A Dxtrn.c368 size_t tlen=length;
404 return(tlen);
362 size_t tlen=length; local
/external/icu/icu4c/source/test/intltest/
H A Dmnkytst.cpp83 int32_t tlen = checkValue((rand() - source.length()) % source.length()); local
87 source.extract(MIN(t, tlen), MAX(t, tlen), subt);
158 int32_t tlen = checkValue((rand() - source.length()) % source.length()); local
162 source.extract(MIN(t, tlen), MAX(t, tlen), subt);
/external/ipsec-tools/src/racoon/
H A Dadmin.c508 int tlen; local
512 tlen = sizeof(*combuf) + buf->l;
514 tlen = sizeof(*combuf);
516 retbuf = racoon_calloc(1, tlen);
524 ((struct admin_com *)retbuf)->ac_len = tlen;
529 tlen = send(so, retbuf, tlen, 0);
531 if (tlen < 0) {
H A Disakmp_quick.c157 int tlen;
233 tlen = + sizeof(*gen) + iph2->sa->l
236 tlen += (sizeof(*gen) + iph2->dhpub->l);
238 tlen += sizeof(*gen) + iph2->id->l;
240 tlen += sizeof(*gen) + iph2->id_p->l;
242 body = vmalloc(tlen);
323 int tlen;
380 tlen = iph2->nonce->l
382 hbuf = vmalloc(tlen);
396 tlen
156 int tlen; local
322 int tlen; local
560 int tlen; local
845 int tlen; local
1190 int tlen; local
1512 int tlen; local
1742 int tlen; local
[all...]
H A Disakmp_inf.c454 int tlen, num_spi;
482 tlen = ntohs(delete->h.len) - sizeof(struct isakmp_pl_d);
484 if (tlen != num_spi * delete->spi_size) {
583 int tlen;
593 tlen = sizeof(*d) + sizeof(isakmp_index);
594 payload = vmalloc(tlen);
603 d->h.len = htons(tlen);
629 int tlen;
657 tlen = sizeof(*d) + pr->spisize;
658 payload = vmalloc(tlen);
453 int tlen, num_spi; local
582 int tlen; local
628 int tlen; local
701 int tlen; local
782 int tlen; local
841 int tlen; local
896 int tlen; local
1060 int tlen; local
1526 int tlen; local
1620 int tlen; local
[all...]
H A Disakmp_cfg.c145 int tlen; local
188 tlen = dmsg->l - sizeof(*packet);
192 while ((tlen > 0) && (np != ISAKMP_NPTYPE_NONE)) {
194 if (tlen < sizeof(*ph)) {
201 if (tlen < ntohs(ph->len)) {
264 tlen -= ntohs(ph->len);
321 int tlen; local
328 tlen = ntohs(attrpl->h.len);
330 tlen -= sizeof(*attrpl);
332 while (tlen >
494 int tlen; local
662 int tlen; local
1127 int tlen; local
[all...]
H A Disakmp_xauth.c129 size_t tlen; local
146 tlen = sizeof(*attr) +
151 if ((buffer = vmalloc(tlen)) == NULL) {
157 memset(attr, 0, tlen);
159 attr->h.len = htons(tlen);
422 size_t tlen; local
424 tlen = sizeof(*attr) +
427 if ((buffer = vmalloc(tlen)) == NULL) {
433 memset(attr, 0, tlen);
435 attr->h.len = htons(tlen);
[all...]
/external/tcpdump/
H A Dprint-vqp.c109 int tlen; local
113 tlen = len;
150 tlen-=sizeof(const struct vqp_common_header_t);
152 while (nitems > 0 && tlen > 0) {
158 tlen-=sizeof(struct vqp_obj_tlv_t);
194 tlen -= vqp_obj_len;
H A Dprint-eap.c158 u_int tlen, type, subtype; local
162 tlen = length;
183 tlen -= sizeof(const struct eap_frame_t);
H A Dprint-lwapp.c170 int tlen; local
204 tlen=EXTRACT_16BITS(lwapp_trans_header->length);
212 tlen));
221 while(tlen>0) {
278 tlen -= sizeof(struct lwapp_control_header) + msg_tlen;
292 int tlen; local
321 tlen=EXTRACT_16BITS(lwapp_trans_header->length);
329 tlen));
332 tlen-=sizeof(const struct lwapp_transport_header);
335 print_unknown_data(ndo, tptr, "\n\t", tlen);
[all...]
H A Dprint-rpki-rtr.c253 u_int encapsulated_pdu_length, text_length, tlen, error_code; local
258 tlen = pdu_len;
267 tlen -= sizeof(*pdu);
273 (encapsulated_pdu_length <= tlen)) {
279 tlen -= encapsulated_pdu_length;
285 if (tlen > 4) {
288 tlen -= 4;
291 if (text_length && (text_length <= tlen )) {
320 u_int tlen, pdu_type, pdu_len; local
325 tlen
[all...]
H A Dprint-tcp.c811 uint16_t savecsum, tlen; local
839 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
840 tlen = htons(tlen);
841 MD5_Update(&ctx, (char *)&tlen, sizeof(tlen));
/external/boringssl/src/crypto/poly1305/
H A Dpoly1305_arm.c239 unsigned int tlen = 1048576; local
240 if (in_len < tlen) {
241 tlen = in_len;
243 tlen -= blocks(h, precomp, in, tlen);
244 in_len -= tlen;
245 in += tlen;
/external/ipsec-tools/src/libipsec/
H A Dkey_debug.c111 int tlen, extlen; local
124 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg);
127 while (tlen > 0) {
135 if (ext->sadb_ext_len > tlen) {
204 tlen -= extlen;
461 int tlen; local
464 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl);
467 while (tlen > 0) {
491 if (xisr->sadb_x_ipsecrequest_len > tlen) {
496 tlen
[all...]
/external/iptables/libipq/
H A Dlibipq.c320 size_t tlen; local
338 tlen = sizeof(nlh) + sizeof(pm);
343 tlen += data_len;
353 nlh.nlmsg_len = tlen;
/external/libopus/tests/
H A Dtest_opus_decode.c347 int tlen[1]={157}; local
355 for(j=1;j<tlen[i];j++)packet[j]=fast_rand()&255;
356 out_samples=opus_decode(dec[t], packet, tlen[i], outbuf, MAX_FRAME_SAMP, 0);
/external/toybox/scripts/
H A Dconfig2help.c258 int clen, tlen; local
277 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen);
284 char **new = xmalloc(sizeof(char *)*(clen+tlen));
287 memcpy(new+clen, tdashlines, sizeof(char *)*tlen);
290 qsort(new, clen+tlen, sizeof(char *), (void *)dashlinesort);
316 tlen += clen;
318 for (clen = 0; clen < tlen; clen++)
/external/harfbuzz_ng/src/
H A Dhb-graphite2.cc89 unsigned int tlen; local
90 const char *d = hb_blob_get_data (blob, &tlen);
91 *len = tlen;
/external/libnl/lib/
H A Dattr.c801 int tlen; local
806 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen);
808 if ((tlen + msg->nm_nlh->nlmsg_len) > msg->nm_size)
816 msg->nm_nlh->nlmsg_len = tlen;
H A Dmsg.c519 size_t tlen; local
524 tlen = pad ? ((len + (pad - 1)) & ~(pad - 1)) : len;
526 if ((tlen + nlmsg_len) > n->nm_size)
530 n->nm_nlh->nlmsg_len += tlen;
532 if (tlen > len)
533 memset(buf + len, 0, tlen - len);
/external/zlib/src/examples/
H A Dgzlog.c301 ulong tlen; /* length (modulo 2^32) of total data */ member in struct:log
425 log->tlen = PULL4(buf + HEAD + 28);
447 PUT4(ext + 28, log->tlen);
525 log->tlen += put;
551 PUT4(buf + 4, log->tlen);
691 log->clen = log->tlen;
696 log->tlen = log->clen;
703 PUT4(buf + 4, log->tlen);
/external/icu/icu4c/source/i18n/
H A Daffixpatternparser.cpp153 int32_t tlen = tokens.length(); local
155 UChar *tokenChars = tokens.getBuffer(tlen + 4);
157 // find start of literal size. May be tlen if there is no literal.
160 int32_t tLiteralStart = tlen;
170 tlen = tLiteralStart;
171 tokenChars[tlen++] = PACK_TOKEN_AND_LENGTH(kLiteral, literalLength & 0xFF);
174 tokenChars[tlen++] = PACK_TOKEN_AND_LENGTH(kLiteral | 0x80, literalLength & 0xFF);
177 tokens.releaseBuffer(tlen);
572 int32_t tlen = tokens->length(); local
573 if (nextTokenIndex == tlen) {
[all...]
/external/libnfc-nci/src/nfc/ndef/
H A Dndef_utils.c463 UINT8 *NDEF_MsgGetFirstRecByType (UINT8 *p_msg, UINT8 tnf, UINT8 *p_type, UINT8 tlen) argument
494 && (type_len == tlen)
495 && (!memcmp (p_rec, p_type, tlen)) )
520 UINT8 *NDEF_MsgGetNextRecByType (UINT8 *p_cur_rec, UINT8 tnf, UINT8 *p_type, UINT8 tlen) argument
555 && (type_len == tlen)
556 && (!memcmp (p_rec, p_type, tlen)) )
/external/openssh/
H A Dssh-pkcs11.c228 CK_ULONG tlen = 0; local
294 tlen = RSA_size(rsa);
295 rv = f->C_Sign(si->session, (CK_BYTE *)from, flen, to, &tlen);
297 rval = tlen;

Completed in 1672 milliseconds

1234