zsh-workers
 help / color / mirror / code / Atom feed
From: Will Day <willday@rom.oit.gatech.edu>
To: ZSH workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: test for network libraries (for test only)/problems with name resolution
Date: Fri, 8 Sep 2000 02:39:43 -0400	[thread overview]
Message-ID: <20000908023943.A11427@rom.oit.gatech.edu> (raw)
In-Reply-To: <000001c0195a$b9945130$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Fri, Sep 08, 2000 at 10:05:01AM +0400

[-- Attachment #1: Type: text/plain, Size: 3104 bytes --]

A short time ago, at a computer terminal far, far away, Andrej Borsenkow wrote:
>> } I dunno. If I remove the "static" from the zftp.c declaration, it
>> } should work fine, but I'm not sure what problems that might introduce.
>>
>> It'll just mean you can't look up names for IPv6 hosts, I think.

It looked to me that, if I removed the 'static' prefix from zftp.pro and
zftp.c, the compiler would then accept the code, as it wouldn't be
conflicting with <netdb.h>.  It would then have an implementation of
gethostbyname2() - however, now being non-static, it could conceiveably be
called from outside the zftp code; that was what I was wondering might
introduce problems.

>IPv6 is the keyword. We need the gethostbyname2/getipnodebyname, inet_pton etc
>*only* if we want to do IPv6. Conversely, we cannot do IPv6 without these
>functions (well, actually, RFC for gethostbyname2 - forgot the number -
>states, that implementation of gethostbyname may return IPv6 addresses, but it
>looks too obscure. And it is is obsolete by getipnodebyname anyway). That was
>what I  was about to do - remove all local (re-)definitions of resolver
>functions and make better guess about SUPORT_IPV6, i.e. do not use IPv6
>functions unless we are doing IPv6 and do not do IPv6 unless we have all
>prerequisites. That should also solve my problem (with incorrect use of
>gethostbyname2). Unfortunately, I do not have any IPv6 implementation here to
>test it. Is there some system that supports IPv6 without proper resolver
>support?Zefram, you added IPv6 support IIRC?
>
>Does Solaris 7 support IPv6?

No, 2.7 doesn't appear to support IPv6 natively, although I think there's
an unbundled, unsupported, experimental-quality pkg from Sun to add IPv6 to
2.7.  I haven't tried it. :)  Solaris 2.8 does support IPv6 natively, of
course.

I was beginning to wonder why it compiles properly under 2.8, as
gethostbyname2() still isn't available (being named res_getbyhostname2
instead).  However, looking back over the code, I see that it works
because, although HAVE_GETHOSTBYNAME2 is still undefined, it doesn't
actually try to define gethostbyname2() in zftp.c because that's only done
if it didn't find getipnodebyname().  Looks like gethostbyname2() is only
needed to implement getipnodebyname(), and 2.8 does have that, in libnsl.
Okay, that makes more sense now. :)

I guess my question, then, is why is zftp even messing with IPv6 stuff
under 2.7 if 2.7 doesn't support IPv6?  Oh never mind - I just re-read your
paragraph above, and understand now.

Sorry, this doesn't really add much to the discussion, but it at least
seemed to help me work it all out in my head.

-- 
Will Day     <PGP mail preferred>     OIT / O&E / Technical Support
willday@rom.oit.gatech.edu            Georgia Tech, Atlanta 30332-0715
  -> Opinions expressed are mine alone and do not reflect OIT policy <-
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    Benjamin Franklin, Pennsylvania Assembly, Nov. 11, 1755

[-- Attachment #2: Type: application/pgp-signature, Size: 360 bytes --]

  reply	other threads:[~2000-09-08  6:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000821092904.A32199@lorien.emufarm.org>
2000-08-22 13:15 ` Andrej Borsenkow
2000-08-22 13:43   ` Roland Jesse
2000-08-22 17:02   ` Bart Schaefer
2000-08-23  6:55     ` Andrej Borsenkow
2000-09-04 13:39     ` Andrej Borsenkow
2000-09-06 15:52       ` Removed " Andrej Borsenkow
2000-09-07 22:16       ` Will Day
2000-09-08  4:14         ` Bart Schaefer
2000-09-08  6:05           ` Andrej Borsenkow
2000-09-08  6:39             ` Will Day [this message]
2000-09-08  7:28             ` OT: " Andrej Borsenkow
2000-09-08 20:31             ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000908023943.A11427@rom.oit.gatech.edu \
    --to=willday@rom.oit.gatech.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).