Searched defs:optcode (Results 1 - 2 of 2) sorted by relevance

/external/toybox/toys/pending/
H A Ddhcp.c390 long optcode = 0, convtmp; local
400 optcode = strtou32(option);
402 if (optcode > 0 && optcode < 256) { // raw option
404 if ((options_list[count].code & 0X00FF) == optcode) {
414 optcode = (options_list[count].code & 0X00FF);
420 if (!flag || !optcode) return -1;
421 if (optonly) return optcode;
H A Ddhcpd.c545 uint32_t optcode = 0, inf = infomode, convtmp, mask, nip, router; local
553 strtou32(option, (uint32_t*)&optcode);
556 if (optcode > 0 && optcode < 256) { // raw option
558 if ((options_list[count].code & 0X00FF) == optcode) {
567 optcode = (options_list[count].code & 0X00FF);
577 if (!flag || !optcode) return -1;
1103 uint16_t optcode; local
1106 memcpy(&optcode, optptr, sizeof(uint16_t));
1108 if(!optcode) {
[all...]

Completed in 67 milliseconds