Home | History | Annotate | Download | only in rp-pppoe

Lines Matching defs:curTag

49     unsigned char *curTag;
68 curTag = packet->payload;
69 while(curTag - packet->payload < len) {
71 tagType = (((UINT16_t) curTag[0]) << 8) +
72 (UINT16_t) curTag[1];
73 tagLen = (((UINT16_t) curTag[2]) << 8) +
74 (UINT16_t) curTag[3];
78 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) {
82 func(tagType, tagLen, curTag+TAG_HDR_SIZE, extra);
83 curTag = curTag + TAG_HDR_SIZE + tagLen;
104 unsigned char *curTag;
123 curTag = packet->payload;
124 while(curTag - packet->payload < len) {
126 tagType = (((UINT16_t) curTag[0]) << 8) +
127 (UINT16_t) curTag[1];
128 tagLen = (((UINT16_t) curTag[2]) << 8) +
129 (UINT16_t) curTag[3];
133 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) {
138 memcpy(tag, curTag, tagLen + TAG_HDR_SIZE);
139 return curTag;
141 curTag = curTag + TAG_HDR_SIZE + tagLen;