Lines Matching refs:res0
634 struct addrinfo *res, *res0; in remote_connect() local
640 res0 = res; in remote_connect()
642 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
643 res0->ai_protocol)) < 0) in remote_connect()
663 ahints.ai_family = res0->ai_family; in remote_connect()
676 set_common_sockopts(s, res0->ai_family); in remote_connect()
678 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
686 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
738 struct addrinfo *res, *res0; in local_listen() local
755 res0 = res; in local_listen()
757 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
758 res0->ai_protocol)) < 0) in local_listen()
780 set_common_sockopts(s, res0->ai_family); in local_listen()
782 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
783 res0->ai_addrlen) == 0) in local_listen()
788 } while ((res0 = res0->ai_next) != NULL); in local_listen()