Lines Matching refs:ip
124 ip2str(in_addr_t ip)
129 ((ip >> 24) & 0xff),
130 ((ip >> 16) & 0xff),
131 ((ip >> 8) & 0xff),
132 (ip & 0xff));
157 in_addr_t ip, mask;
159 ip = mask = flags = vmask = 0;
167 ip = g_gate_str2ip(strsep(&word, "/"));
168 if (ip == INADDR_NONE) {
172 ip = ntohl(ip);
225 ex->e_ip = (ip & mask);
378 in_addr_t ip;
381 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr);
383 if ((ip & ex->e_mask) != ex->e_ip) {
402 ip2str(ip));
448 in_addr_t ip;
467 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr);
468 conn->c_srcip = ip;
479 g_gate_log(LOG_DEBUG, "Connection created [%s, %s].", ip2str(ip),
488 in_addr_t ip;
490 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr);
494 "Send socket already exists [%s, %s].", ip2str(ip),
503 ip2str(ip), conn->c_path);
508 g_gate_log(LOG_DEBUG, "Connection added [%s, %s].", ip2str(ip),
841 in_addr_t ip;
843 ip = htonl(((struct sockaddr_in *)(void *)from)->sin_addr.s_addr);
844 g_gate_log(LOG_INFO, "Connection from: %s.", ip2str(ip));