Searched refs:tagLen (Results 1 – 3 of 3) 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/icu4c/common/ |
D | uloc_tag.c | 114 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status); 1641 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status) { in ultag_parse() argument 1661 if (tagLen < 0) { in ultag_parse() 1662 tagLen = (int32_t)uprv_strlen(tag); in ultag_parse() 1666 tagBuf = (char*)uprv_malloc(tagLen + 1); in ultag_parse() 1671 uprv_memcpy(tagBuf, tag, tagLen); in ultag_parse() 1672 *(tagBuf + tagLen) = 0; in ultag_parse() 1684 if (tagLen < MINLEN) { in ultag_parse() 1696 *parsedLen = tagLen; in ultag_parse()
|