Lines Matching refs:res0
481 struct addrinfo *res, *res0; in remote_connect() local
487 res0 = res; in remote_connect()
489 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
490 res0->ai_protocol)) < 0) in remote_connect()
505 ahints.ai_family = res0->ai_family; in remote_connect()
520 if (connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
528 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
530 if (Iflag && res0) in remote_connect()
531 prepend_peer(res0->ai_addr); in remote_connect()
546 struct addrinfo *res, *res0; in local_listen() local
563 res0 = res; in local_listen()
565 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
566 res0->ai_protocol)) == 0) in local_listen()
575 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
576 res0->ai_addrlen) == 0) in local_listen()
581 } while ((res0 = res0->ai_next) != NULL); in local_listen()