Searched refs:tagLen (Results 1 – 5 of 5) sorted by relevance
/external/ppp/pppd/plugins/rp-pppoe/ |
D | common.c | 50 UINT16_t tagType, tagLen; in parsePacket() local 73 tagLen = (((UINT16_t) curTag[2]) << 8) + in parsePacket() 78 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) { in parsePacket() 79 syslog(LOG_ERR, "Invalid PPPoE tag length (%u)", tagLen); in parsePacket() 82 func(tagType, tagLen, curTag+TAG_HDR_SIZE, extra); in parsePacket() 83 curTag = curTag + TAG_HDR_SIZE + tagLen; in parsePacket() 105 UINT16_t tagType, tagLen; in findTag() local 128 tagLen = (((UINT16_t) curTag[2]) << 8) + in findTag() 133 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) { in findTag() 134 syslog(LOG_ERR, "Invalid PPPoE tag length (%u)", tagLen); in findTag() [all …]
|
/external/icu4c/tools/gencnval/ |
D | gencnval.c | 181 getTagNumber(const char *tag, uint16_t tagLen); 510 getTagNumber(const char *tag, uint16_t tagLen) { in getTagNumber() argument 513 UBool preferredName = ((tagLen > 0) ? (tag[tagLen - 1] == '*') : (FALSE)); in getTagNumber() 522 tagLen--; in getTagNumber() 527 if (uprv_strlen(currTag) == tagLen && !uprv_strnicmp(currTag, tag, tagLen)) { in getTagNumber() 539 atag = allocString(&tagBlock, tag, tagLen); in getTagNumber() 546 else if (tagLen > 0 && strcmp(tag, ALL_TAG_STR) != 0) { in getTagNumber()
|
/external/chromium/third_party/icu/source/tools/gencnval/ |
D | gencnval.c | 181 getTagNumber(const char *tag, uint16_t tagLen); 510 getTagNumber(const char *tag, uint16_t tagLen) { in getTagNumber() argument 513 UBool preferredName = ((tagLen > 0) ? (tag[tagLen - 1] == '*') : (FALSE)); in getTagNumber() 522 tagLen--; in getTagNumber() 527 if (uprv_strlen(currTag) == tagLen && !uprv_strnicmp(currTag, tag, tagLen)) { in getTagNumber() 539 atag = allocString(&tagBlock, tag, tagLen); in getTagNumber() 546 else if (tagLen > 0 && strcmp(tag, ALL_TAG_STR) != 0) { in getTagNumber()
|
/external/chromium/third_party/icu/source/common/ |
D | uloc_tag.c | 110 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status); 1573 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status) { in ultag_parse() argument 1593 if (tagLen < 0) { in ultag_parse() 1594 tagLen = uprv_strlen(tag); in ultag_parse() 1598 tagBuf = (char*)uprv_malloc(tagLen + 1); in ultag_parse() 1603 uprv_memcpy(tagBuf, tag, tagLen); in ultag_parse() 1604 *(tagBuf + tagLen) = 0; in ultag_parse() 1607 for (i = 0; i < tagLen; i++) { in ultag_parse() 1621 if (tagLen < MINLEN) { in ultag_parse() 1633 *parsedLen = tagLen; in ultag_parse()
|
/external/icu4c/common/ |
D | uloc_tag.c | 111 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status); 1598 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status) { in ultag_parse() argument 1618 if (tagLen < 0) { in ultag_parse() 1619 tagLen = (int32_t)uprv_strlen(tag); in ultag_parse() 1623 tagBuf = (char*)uprv_malloc(tagLen + 1); in ultag_parse() 1628 uprv_memcpy(tagBuf, tag, tagLen); in ultag_parse() 1629 *(tagBuf + tagLen) = 0; in ultag_parse() 1641 if (tagLen < MINLEN) { in ultag_parse() 1653 *parsedLen = tagLen; in ultag_parse()
|