Searched refs:tlen (Results 1 - 25 of 80) sorted by relevance

1234

/external/tcpdump/
H A Dprint-vqp.c117 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 Dprint-cfm.c298 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; local
337 tlen = length - sizeof(struct cfm_common_header_t);
469 if (tlen > cfm_common_header->first_tlv_offset) {
471 tlen - cfm_common_header->first_tlv_offset);
479 if (tlen <= cfm_common_header->first_tlv_offset) {
484 tlen -= cfm_common_header->first_tlv_offset;
486 while (tlen > 0) {
508 ((cfm_tlv_len + sizeof(struct cfm_tlv_header_t) > tlen) ||
510 print_unknown_data(tptr,"\n\t ",tlen);
515 tlen
[all...]
H A Dprint-rpki-rtr.c258 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 Dprint-sflow.c475 u_int tlen; local
483 tlen = len;
487 if (tlen < sizeof(struct sflow_counter_record_t))
502 tlen -= sizeof(struct sflow_counter_record_t);
504 if (tlen < counter_len)
509 if (print_sflow_counter_generic(tptr,tlen))
513 if (print_sflow_counter_ethernet(tptr,tlen))
517 if (print_sflow_counter_token_ring(tptr,tlen))
521 if (print_sflow_counter_basevg(tptr,tlen))
525 if (print_sflow_counter_vlan(tptr,tlen))
668 u_int tlen; local
819 u_int tlen; local
[all...]
H A Dprint-lwapp.c177 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 Dprint-bgp.c960 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len; local
964 tlen=plen;
981 tlen-=12;
996 tlen-=15;
999 while (tlen>0) {
1000 if (tlen < 3)
1035 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */
1300 u_int tlen; local
1307 tlen=len;
1425 while (tlen>
[all...]
H A Dprint-slow.c340 void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { argument
353 while(tlen>0) {
367 tlv_len > tlen) &&
371 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen);
449 tlen-=tlv_len;
456 void slow_oam_print(register const u_char *tptr, register u_int tlen) { argument
485 tlen -= sizeof(struct slow_oam_common_header_t);
495 while (tlen > 0) {
563 tlen -= ptr.slow_oam_tlv_header->length;
569 while (tlen >
[all...]
H A Dprint-lldp.c1108 u_int tlen, tlv_type, tlv_len; local
1125 tlen = len - 4;
1127 while (tlen >= sizeof(tlv)) {
1137 tlen -= sizeof(tlv);
1146 if (tlen < tlv_len) {
1253 tlen -= tlv_len;
1311 u_int tlen; local
1314 tlen = len;
1317 if (tlen < 1) {
1321 tlen
1372 u_int oui, tlen, hexdump, tlv_type, tlv_len; local
[all...]
H A Dprint-eap.c168 u_int tlen, type, subtype; local
172 tlen = length;
193 tlen -= sizeof(const struct eap_frame_t);
H A Dprint-rsvp.c648 const char *ident, u_int tlen) {
667 while(tlen>=sizeof(struct rsvp_object_header)) {
705 if(tlen < rsvp_obj_len) {
1797 tlen-=rsvp_obj_len;
1811 u_short plen, tlen, subtlen; local
1838 plen = tlen = EXTRACT_16BITS(rsvp_com_header->length);
1845 tlen,
1855 if (tlen < sizeof(const struct rsvp_common_header)) {
1856 printf("ERROR: common header too short %u < %lu", tlen,
1862 tlen
639 rsvp_obj_print(const u_char *pptr _U_ , u_int plen _U_ , const u_char *tptr, const char *ident, u_int tlen) argument
[all...]
H A Dprint-eigrp.c219 u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; local
254 tlen=len-sizeof(struct eigrp_common_header);
268 tlen);
272 while(tlen>0) {
282 eigrp_tlv_len > tlen) {
283 print_unknown_data(tptr+sizeof(struct eigrp_tlv_header),"\n\t ",tlen);
475 tlen-=eigrp_tlv_len;
/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/boringssl/src/crypto/rsa/
H A Dpadding.c71 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/ipsec-tools/src/racoon/
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_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_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 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) {
/external/toybox/scripts/
H A Dconfig2help.c241 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/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/libipsec/
H A Dpolicy_parse.y101 static int tlen = 0; /* total length of pbuf */
478 tlen = 0;
485 tlen = sizeof(struct sadb_x_policy);
487 memset(pbuf, 0, tlen);
506 offset = tlen;
523 tlen += reqlen; /* increment to total length */
525 n = realloc(pbuf, tlen);
556 /* tlen has already incremented */
593 tlen = 0;
611 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen);
[all...]
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/wpa_supplicant_8/hostapd/src/utils/
H A Dcommon.c648 size_t tlen; local
653 tlen = pos - value;
654 tstr = dup_binstr(value, tlen);
658 str = os_malloc(tlen + 1);
664 *len = printf_decode((u8 *) str, tlen + 1, tstr);
670 size_t tlen, hlen = os_strlen(value); local
673 tlen = hlen / 2;
674 str = os_malloc(tlen + 1);
677 if (hexstr2bin(value, str, tlen)) {
681 str[tlen]
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dcommon.c648 size_t tlen; local
653 tlen = pos - value;
654 tstr = dup_binstr(value, tlen);
658 str = os_malloc(tlen + 1);
664 *len = printf_decode((u8 *) str, tlen + 1, tstr);
670 size_t tlen, hlen = os_strlen(value); local
673 tlen = hlen / 2;
674 str = os_malloc(tlen + 1);
677 if (hexstr2bin(value, str, tlen)) {
681 str[tlen]
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dcommon.c648 size_t tlen; local
653 tlen = pos - value;
654 tstr = dup_binstr(value, tlen);
658 str = os_malloc(tlen + 1);
664 *len = printf_decode((u8 *) str, tlen + 1, tstr);
670 size_t tlen, hlen = os_strlen(value); local
673 tlen = hlen / 2;
674 str = os_malloc(tlen + 1);
677 if (hexstr2bin(value, str, tlen)) {
681 str[tlen]
[all...]
/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;

Completed in 412 milliseconds

1234