Change krb5 kcmd to use getaddrinfo, and add some hooks for future ipv6
authorKen Raeburn <raeburn@mit.edu>
Mon, 11 Feb 2002 00:15:47 +0000 (00:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 11 Feb 2002 00:15:47 +0000 (00:15 +0000)
commit19a416e0d7daa6b71a6137d77c6600ecf0201727
treef78342f013665433ea4898ebf47f407f217e651f
parent54824bb0af1c05f0811cb43a0ce0a8f8753eec02
Change krb5 kcmd to use getaddrinfo, and add some hooks for future ipv6
support.

* defines.h: Include fake-addrinfo.h.
(FAI_PREFIX): Define.
(getport): Update.
* kcmd.c: Include fake-addrinfo.c.
(kcmd): Use getaddrinfo instead of gethostbyname, but only get AF_INET
addresses for now.
(k4cmd): Update argument list to getport.
(getport): Accept new argument, pointer to address family to use.  If zero, try
inet6 and then inet.
* krshd.c (doit): Update argument list to getport.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14140 dc483132-0cff-0310-8789-dd5450dbe970
src/appl/bsd/ChangeLog
src/appl/bsd/defines.h
src/appl/bsd/kcmd.c
src/appl/bsd/krshd.c