/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | common.c | 174 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/icu/icu4c/source/test/intltest/ |
H A D | mnkytst.cpp | 83 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 D | admin.c | 508 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 D | isakmp_quick.c | 157 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 D | isakmp_inf.c | 454 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 D | isakmp_cfg.c | 145 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 D | isakmp_xauth.c | 129 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 D | print-vqp.c | 117 int tlen; local 121 tlen = len; 158 tlen-=sizeof(const struct vqp_common_header_t); 160 while (nitems > 0 && tlen > 0) { 166 tlen-=sizeof(struct vqp_obj_tlv_t); 203 tlen -= vqp_obj_len;
|
H A D | print-eap.c | 168 u_int tlen, type, subtype; local 172 tlen = length; 193 tlen -= sizeof(const struct eap_frame_t);
|
H A D | print-lwapp.c | 177 int tlen; local 212 tlen=EXTRACT_16BITS(lwapp_trans_header->length); 220 tlen); 230 while(tlen>0) { 289 tlen -= sizeof(struct lwapp_control_header) + msg_tlen; 302 int tlen; local 332 tlen=EXTRACT_16BITS(lwapp_trans_header->length); 340 tlen); 343 tlen-=sizeof(const struct lwapp_transport_header); 346 print_unknown_data(tptr, "\n\t", tlen); [all...] |
H A D | print-rpki-rtr.c | 258 u_int encapsulated_pdu_length, text_length, tlen, error_code; local 263 tlen = pdu_len; 272 tlen -= sizeof(*pdu); 278 (encapsulated_pdu_length <= tlen)) { 284 tlen -= encapsulated_pdu_length; 290 if (tlen > 4) { 293 tlen -= 4; 295 if (text_length && (text_length <= tlen )) { 320 u_int tlen, pdu_type, pdu_len; local 325 tlen [all...] |
H A D | print-tcp.c | 795 u_int16_t savecsum, tlen; local 823 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4; 824 tlen = htons(tlen); 825 MD5_Update(&ctx, (char *)&tlen, sizeof(tlen));
|
/external/boringssl/src/crypto/poly1305/ |
H A D | poly1305_arm.c | 239 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 D | key_debug.c | 111 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...] |
H A D | pfkey.c | 139 int tlen; local 153 tlen = ipsec_supported[algno]->sadb_supported_len 156 while (tlen > 0) { 157 if (tlen < sizeof(struct sadb_alg)) { 164 tlen -= sizeof(struct sadb_alg); 748 * tlen: msg length, it's to makeing sure. 754 pfkey_set_supported(msg, tlen) 756 int tlen; 763 if (msg->sadb_msg_len != tlen) { 769 ep = p + tlen; [all...] |
/external/iptables/libipq/ |
H A D | libipq.c | 320 size_t tlen; local 338 tlen = sizeof(nlh) + sizeof(pm); 343 tlen += data_len; 353 nlh.nlmsg_len = tlen;
|
/external/libopus/tests/ |
H A D | test_opus_decode.c | 347 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 D | config2help.c | 241 int clen, tlen; local 260 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen); 267 char **new = xmalloc(sizeof(char *)*(clen+tlen)); 270 memcpy(new+clen, tdashlines, sizeof(char *)*tlen); 273 qsort(new, clen+tlen, sizeof(char *), (void *)dashlinesort); 299 tlen += clen; 301 for (clen = 0; clen < tlen; clen++)
|
/external/boringssl/src/crypto/rsa/ |
H A D | padding.c | 71 int RSA_padding_add_PKCS1_type_1(uint8_t *to, unsigned tlen, argument 76 if (tlen < RSA_PKCS1_PADDING_SIZE) { 82 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) { 94 j = tlen - 3 - flen; 102 int RSA_padding_check_PKCS1_type_1(uint8_t *to, unsigned tlen, argument 150 if (j > tlen) { 160 int RSA_padding_add_PKCS1_type_2(uint8_t *to, unsigned tlen, argument 165 if (tlen < RSA_PKCS1_PADDING_SIZE) { 171 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) { 183 j = tlen 269 RSA_padding_check_PKCS1_type_2(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument 301 RSA_padding_add_none(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument 318 RSA_padding_check_none(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen) argument 372 RSA_padding_add_PKCS1_OAEP_mgf1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen, const uint8_t *param, unsigned plen, const EVP_MD *md, const EVP_MD *mgf1md) argument 450 RSA_padding_check_PKCS1_OAEP_mgf1(uint8_t *to, unsigned tlen, const uint8_t *from, unsigned flen, const uint8_t *param, unsigned plen, const EVP_MD *md, const EVP_MD *mgf1md) argument [all...] |
/external/harfbuzz_ng/src/ |
H A D | hb-graphite2.cc | 89 unsigned int tlen; local 90 const char *d = hb_blob_get_data (blob, &tlen); 91 *len = tlen;
|
/external/libnl/lib/ |
H A D | attr.c | 801 int tlen; local 803 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); 805 if ((tlen + msg->nm_nlh->nlmsg_len) > msg->nm_size) 813 msg->nm_nlh->nlmsg_len = tlen;
|
H A D | msg.c | 519 size_t tlen; local 521 tlen = pad ? ((len + (pad - 1)) & ~(pad - 1)) : len; 523 if ((tlen + nlmsg_len) > n->nm_size) 527 n->nm_nlh->nlmsg_len += tlen; 529 if (tlen > len) 530 memset(buf + len, 0, tlen - len);
|
/external/zlib/src/examples/ |
H A D | gzlog.c | 301 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/libnfc-nci/src/nfc/ndef/ |
H A D | ndef_utils.c | 463 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 D | ssh-pkcs11.c | 228 CK_ULONG tlen = 0; local 286 tlen = RSA_size(rsa); 287 rv = f->C_Sign(si->session, (CK_BYTE *)from, flen, to, &tlen); 289 rval = tlen;
|