Lines Matching refs:addr
90 static void insert(struct list_pid **l, int pid, char *addr)
94 newnode->ip = addr;
104 static int haship( char *addr)
109 if (!addr) error_exit("NULL ip");
110 while (i < strlen(addr)) {
111 while (addr[i] && (addr[i] != ':') && (addr[i] != '.')) {
112 ip[count] = ip[count]*10 + (addr[i]-'0');
115 if (i >= strlen(addr)) break;
272 char *ptr = NULL, *addr, *server, buf[sizeof(struct sockaddr_in6)];
323 addr = sock_to_address((struct sockaddr*)buf, NI_NUMERICHOST);
325 hash = haship(addr);
328 if (!strcmp(head->d, addr)) break;
339 newnode->d = addr;
341 if (!strcmp(addr, head->d)) {
397 insert(&pids, pid, addr);