Lines Matching refs:val
597 char *val; in udhcp_str2optset() local
600 val = strtok_r(NULL, "", &str); /* do not split "'q w e'" */ in udhcp_str2optset()
601 if (val) trim(val); in udhcp_str2optset()
603 val = strtok_r(NULL, ", \t", &str); in udhcp_str2optset()
604 if (!val) in udhcp_str2optset()
613 retval = udhcp_str2nip(val, buffer); in udhcp_str2optset()
616 retval = udhcp_str2nip(val, buffer); in udhcp_str2optset()
617 val = strtok_r(NULL, ", \t/-", &str); in udhcp_str2optset()
618 if (!val) in udhcp_str2optset()
621 retval = udhcp_str2nip(val, buffer + 4); in udhcp_str2optset()
629 length = strnlen(val, 254); in udhcp_str2optset()
631 opt = val; in udhcp_str2optset()
642 buffer[0] = bb_strtou32(val, NULL, 0); in udhcp_str2optset()
649 uint32_t tmp = bb_strtou32(val, NULL, 0); in udhcp_str2optset()
661 uint32_t tmp = bb_strtou32(val, NULL, 0); in udhcp_str2optset()
667 int32_t tmp = bb_strtoi32(val, NULL, 0); in udhcp_str2optset()
676 char *slash = strchr(val, '/'); in udhcp_str2optset()
679 retval = udhcp_str2nip(val, buffer + 1); in udhcp_str2optset()
681 val = strtok_r(NULL, ", \t/-", &str); in udhcp_str2optset()
682 if (!val || mask > 32 || errno) in udhcp_str2optset()
686 retval = udhcp_str2nip(val, buffer + (length - 4)); in udhcp_str2optset()
693 if (val[0] == '"' || val[0] == '\'') { in udhcp_str2optset()
694 char delim = val[0]; in udhcp_str2optset()
695 char *end = last_char_is(val + 1, delim); in udhcp_str2optset()
698 val++; in udhcp_str2optset()
704 opt = val; in udhcp_str2optset()