Lines Matching refs:ip
45 make_address(const char *address, struct in_addr *ip)
47 if(inet_aton(address, ip) == 0){
53 ip->s_addr = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
133 /* Try to lookup a name or an ip-address using http as transport
201 struct in_addr ip;
202 inet_aton(p, &ip);
203 ip.s_addr = ntohl(ip.s_addr);
205 addrs[num_addrs * 4 + 0] = (ip.s_addr >> 24) & 0xff;
206 addrs[num_addrs * 4 + 1] = (ip.s_addr >> 16) & 0xff;
207 addrs[num_addrs * 4 + 2] = (ip.s_addr >> 8) & 0xff;
208 addrs[num_addrs * 4 + 3] = (ip.s_addr >> 0) & 0xff;
245 ip-addresses */
269 struct in_addr ip;
271 ip.s_addr = htonl((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
272 printf("%s\n", inet_ntoa(ip));