Home
last modified time | relevance | path

Searched refs:optcode (Results 1 – 2 of 2) sorted by relevance

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