Lines Matching defs:ip
678 httpGetHostByName(const char *name) /* I - Hostname or IP address */
681 unsigned ip[4]; /* IP address components */
699 * IP addresses. If the first character of the name string is a
700 * number, then sscanf() is used to extract the IP components.
739 if (sscanf(name, "%u.%u.%u.%u", ip, ip + 1, ip + 2, ip + 3) != 4)
742 if (ip[0] > 255 || ip[1] > 255 || ip[2] > 255 || ip[3] > 255)
745 cg->ip_addr = htonl((((((((unsigned)ip[0] << 8) | (unsigned)ip[1]) << 8) |
746 (unsigned)ip[2]) << 8) |
747 (unsigned)ip[3]));