Lines Matching defs:quads
434 int i, quads;
440 * "partial" addresses (with less than 4 quads) correctly, i.e.
453 /* Iterate over up to 4 (dotted) quads. */
454 for (quads = 0; quads < 4 && *addr != '\0'; ++quads) {
457 if (*addr == '/' && quads > 0) { /* netmask starts here. */
465 ip_addr[quads] = strtol(addr, &tmp, 0);
471 if (ip_addr[quads] < 0 || ip_addr[quads] > 255) {
478 if (*addr == '.' && quads != 3) {
483 for (This->addr.s_addr = 0, i = 0; i < quads; ++i) {
508 * number of trailing .0's; reduce #quads appropriately
511 while (quads > 0 && ip_addr[quads - 1] == 0) {
512 --quads;
516 if (quads < 1) {
521 bits = 8 * quads;