Lines Matching defs:nIndex
162 int nIndex = 0, maxLen = DHCP_OPT_SIZE, nOver = 0, nFinished = 0, nFlag = OPTION_FIELD;
164 int nRet = CheckOptionsData(packet, code, nIndex, maxLen);
166 *length = pOption[nIndex + DHCP_OPT_LEN_INDEX];
167 return pOption + nIndex + DHCP_OPT_DATA_INDEX;
172 switch (pOption[nIndex + DHCP_OPT_CODE_INDEX]) {
174 nIndex++;
177 if (!CheckOptSoverloaded(packet, code, maxLen, &nOver, &nIndex)) {
184 nIndex = 0;
189 nIndex = 0;
197 nIndex += DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOption[nIndex + DHCP_OPT_LEN_INDEX];
201 DHCP_LOGW("GetDhcpOption options no find code:%{public}d, nIndex:%{public}d!", code, nIndex);
313 int nIndex = 0;
314 while (pOpts[nIndex] != END_OPTION) {
315 if (pOpts[nIndex] != PAD_OPTION) {
316 nIndex += pOpts[nIndex + DHCP_OPT_LEN_INDEX] + DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES;
319 nIndex++;
321 return nIndex;