Lines Matching refs:hs
105 struct hello_socket *hs; in create_hello_sockets() local
182 hs = (struct hello_socket *)malloc(sizeof(*hs)); in create_hello_sockets()
183 if (hs == NULL) { in create_hello_sockets()
187 hs->type = AF_INET; in create_hello_sockets()
188 hs->socket = s; in create_hello_sockets()
189 SLIST_INSERT_HEAD(&hello_socket_head, hs, listentry); in create_hello_sockets()
261 hs = (struct hello_socket *)malloc(sizeof(*hs)); in create_hello_sockets()
262 if (hs == NULL) { in create_hello_sockets()
267 hs->type = AF_INET6; in create_hello_sockets()
268 hs->socket = s; in create_hello_sockets()
269 SLIST_INSERT_HEAD(&hello_socket_head, hs, listentry); in create_hello_sockets()
281 struct hello_socket *hs; in is_hello_socket() local
283 SLIST_FOREACH(hs, &hello_socket_head, listentry) in is_hello_socket()
284 if (hs->socket == s) in is_hello_socket()
416 struct hello_socket *hs; in send_hello() local
485 SLIST_FOREACH(hs, &hello_socket_head, listentry) in send_hello()
486 if (hs->type == AF_INET) { in send_hello()
487 ip4socket = hs->socket; in send_hello()
561 SLIST_FOREACH(hs, &hello_socket_head, listentry) in send_hello()
562 if (hs->type == AF_INET6) { in send_hello()
563 ip6socket = hs->socket; in send_hello()
823 struct hello_socket *hs; in the_big_loop() local
875 SLIST_FOREACH(hs, &hello_socket_head, listentry) { in the_big_loop()
876 pfd[pollsum].fd = hs->socket; in the_big_loop()