Lines Matching refs:options_list
291 static option_val_t options_list[] = { variable
547 int count, size = ARRAY_LEN(options_list); in strtoopt()
558 if ((options_list[count].code & 0X00FF) == optcode) { in strtoopt()
559 flag = (options_list[count].code & 0XFF00); in strtoopt()
565 if (!strncmp(options_list[count].key, option, strlen(options_list[count].key))) { in strtoopt()
566 flag = (options_list[count].code & 0XFF00); in strtoopt()
567 optcode = (options_list[count].code & 0X00FF); in strtoopt()
586 options_list[count].len = sizeof(uint32_t); in strtoopt()
587 options_list[count].val = xmalloc(sizeof(uint32_t)); in strtoopt()
589 memcpy(options_list[count].val, &convtmp, sizeof(uint32_t)); in strtoopt()
592 options_list[count].len = sizeof(uint16_t); in strtoopt()
593 options_list[count].val = xmalloc(sizeof(uint16_t)); in strtoopt()
595 memcpy(options_list[count].val, &convtmp, sizeof(uint16_t)); in strtoopt()
598 options_list[count].len = sizeof(uint8_t); in strtoopt()
599 options_list[count].val = xmalloc(sizeof(uint8_t)); in strtoopt()
601 memcpy(options_list[count].val, &convtmp, sizeof(uint8_t)); in strtoopt()
604 options_list[count].len = sizeof(uint32_t); in strtoopt()
605 options_list[count].val = xmalloc(sizeof(uint32_t)); in strtoopt()
606 striptovar(valstr, options_list[count].val); in strtoopt()
609 options_list[count].len = strlen(valstr); in strtoopt()
610 options_list[count].val = strdup(valstr); in strtoopt()
614 …options_list[count].val = xrealloc(options_list[count].val, options_list[count].len + sizeof(uint3… in strtoopt()
615 striptovar(valstr, ((uint8_t*)options_list[count].val)+options_list[count].len); in strtoopt()
616 options_list[count].len += sizeof(uint32_t); in strtoopt()
640 …options_list[count].val = xrealloc(options_list[count].val, options_list[count].len + 1 + mask/8 +… in strtoopt()
641 memcpy(((uint8_t*)options_list[count].val)+options_list[count].len, &mask, 1); in strtoopt()
642 options_list[count].len += 1; in strtoopt()
643 memcpy(((uint8_t*)options_list[count].val)+options_list[count].len, &nip, mask/8); in strtoopt()
644 options_list[count].len += mask/8; in strtoopt()
645 memcpy(((uint8_t*)options_list[count].val)+options_list[count].len, &router, 4); in strtoopt()
646 options_list[count].len += 4; in strtoopt()
1145 int count, size = ARRAY_LEN(options_list); in set_reqparam()
1150 if ((options_list[count].code & 0X00FF)==reqcode) { in set_reqparam()
1151 if (!(options_list[count].len) || !(options_list[count].val)) break; in set_reqparam()
1153 *optptr++ = (uint8_t) (options_list[count].code & 0x00FF); in set_reqparam()
1154 *optptr++ = (uint8_t) options_list[count].len; in set_reqparam()
1155 memcpy(optptr, options_list[count].val, options_list[count].len); in set_reqparam()
1156 optptr += options_list[count].len; in set_reqparam()
1271 int count, size = ARRAY_LEN(options_list); in set_maxlease()
1273 if (options_list[count].val && options_list[count].code == (DHCP_OPT_LEASE_TIME)) { in set_maxlease()
1274 gconfig.max_lease_sec = *((uint32_t*)options_list[count].val); in set_maxlease()