159 * positions are marked as one if those values were
160 * supplied in the range. for example:
161 *
162 * char *range = "10.1.1.1";
163 *
164 * would result in the 10th byte of the 1st array
165 * being set to the value of one, while the 1st
166 * byte of the 2nd, 3rd and 4th arrays being set to
167 * one.
168 *
169 * once the range has been completely parsed and
170 * all values stored in the arrays (the state), a
171 * series of for loops can be used to iterate
172 * through the range.
173 *
174 * IP address range parser for nmap-style command
175 * line syntax.
176 *
177 * example:
178 *
179 * "192.168.1,2,3,4-12,70.*"
180 *
181 *
182 *
183 */
184 int ipv4_parse_ctx_init (ipv4_parse_ctx *ctx ,
185 char *range )
186 {
187 char *oc[4];
188 int x = 0;
189
190
if(ctx ...