Lines Matching defs:val
76 char *opt, *val, *endptr;
93 val = strtok(NULL, ", \t");
94 if (val) {
99 retval = read_ip(val, buffer);
102 retval = read_ip(val, buffer);
103 if (!(val = strtok(NULL, ", \t/-"))) retval = 0;
104 if (retval) retval = read_ip(val, buffer + 4);
107 length = strlen(val);
110 memcpy(buffer, val, length);
115 retval = read_yn(val, buffer);
118 buffer[0] = strtoul(val, &endptr, 0);
122 result_u16 = htons(strtoul(val, &endptr, 0));
127 result_u16 = htons(strtol(val, &endptr, 0));
132 result_u32 = htonl(strtoul(val, &endptr, 0));
137 result_u32 = htonl(strtol(val, &endptr, 0));
147 } while (val && retval && option->flags & OPTION_LIST);