>>I'd very much like to see PF_LOCAL support added to our getaddrinfo()
>>and getnameinfo(). I know that PF_LOCAL sockets have semantics that
>Here is quick and simple implementation - any comments welcome. It
>probably needs a few changes to match the conventions of other
>implementations, and a mention of these conventions on the manpage.

        what is the main motive of your change?

        your change is correct in terms of address family independence,
        however, due to the impact of the change, i would really want you to
        be careful as hell.  if i were you i won't go there.
        (i don't think i will bring the change back to kame tree, i don't want
        to affect other platforms)

        the change will break a lot of applications.  specifically:
        - TCP-only clients, including ftp. (*)
        - daemons which usees AI_PASSIVE to open listeing sockets.  they won't
          get broken, but they will have a AF_UNIX socket unwillingly opened
          for listening.

        (*) you can blame us (or whoever else) for not checking AF_INET/
        AF_INET6 on getaddrinfo loop, but anyway, there are a lot of
        applications that does not.

        also, with AF_UNIX, {NI,AI}_NUMERIC{HOST,SERV} does not have proper
        interpretation.  you will need to pick some interpretation (maybe
        you may want to follow what NRL did for linux glibc/NRL IPv6 stack)

        again, if i were you i won't go there.

itojun

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to