From owner-freebsd-bugs Mon Jul 5 22:50: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BB74214C2A for ; Mon, 5 Jul 1999 22:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA73894; Mon, 5 Jul 1999 22:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 5 Jul 1999 22:50:02 -0700 (PDT) Message-Id: <199907060550.WAA73894@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mikhail Teterin Subject: Re: bin/11296: fetch(1) fails to resolve names in http mode under SOCKS5 Reply-To: Mikhail Teterin Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/11296; it has been noted by GNATS. From: Mikhail Teterin To: freebsd-gnats-submit@freebsd.org, mi@aldan.algebra.com Cc: Subject: Re: bin/11296: fetch(1) fails to resolve names in http mode under SOCKS5 Date: Tue, 06 Jul 1999 01:48:45 -0400 This is a multi-part message in MIME format. --------------0E9E235F77A464A42258D8EE Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit The gethostbyname2 used in the fetch's http.c is not implemented by the Socks' libsocks5_sh.so. The attached simple patch makes fetch resolve the names, but fetch still does not work -- this time with the ``No route to host''. Some other piece of code needs to be altered to only use calls provided for by the Socks5 wrapper library. Someone with better understanding of network programming has to take a look at it... -- |\__-----__/| _____/ ::::: :::\_____ '__--( ::::::::..::)--__` -mi If you have a / _- \/ :::::::\/ -_ serious knowledge / / :. .::::\ \ about computers -- | ::::::::::::| Ok, let's say you broke keep it in a secret! _|/ ::::____::\|_ the wall with your head "Rules of dating", / /:::::/:_::\::\:.\ What are you going to 'Playboy', ? 1994 | :| ..:(_/ \::|::|::| do in the next cell? | :|:::::. ::|: |::|.:| Stanislaw J. Lec \ |:: :::_/::/: :|:/ ((___\____\____/___/___)) --------------0E9E235F77A464A42258D8EE Content-Type: text/plain; charset=koi8-r; name="http.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="http.c.patch" --- http.c.dumb Sat Jun 26 13:22:18 1999 +++ http.c Tue Jul 6 01:38:16 1999 @@ -485,3 +485,3 @@ /* XXX - do timeouts for name resolution? */ - hp = gethostbyname2(https->http_hostname, AF_INET); + hp = gethostbyname(https->http_hostname); if (hp == 0) { --------------0E9E235F77A464A42258D8EE Content-Type: text/x-vcard; charset=koi8-r; name="mi.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mikhail Teterin Content-Disposition: attachment; filename="mi.vcf" begin:vcard n:Teterin;Mikhail x-mozilla-html:FALSE org:Virtual Estates, Inc. adr:;;;;;; version:2.1 email;internet:mi@aldan.algebra.com title:President x-mozilla-cpt:;0 fn:Mikhail Teterin end:vcard --------------0E9E235F77A464A42258D8EE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message