fake-getnameinfo.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* fake library for ssh
*
* This file includes getnameinfo().
* These funtions are defined in rfc2133.
*
* But these functions are not implemented correctly. The minimum subset
* is implemented for ssh use only. For exapmle, this routine assumes
* that ai_family is AF_INET. Don't use it for another purpose.
*/
#include "includes.h"
#include "ssh.h"
RCSID("$Id: fake-getnameinfo.c,v 1.2 2001/02/09 01:55:36 djm Exp $");
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef HAVE_GETNAMEINFO
{
char tmpserv[16];
if (serv) {
return EAI_MEMORY;
else
}
if (host) {
if (flags & NI_NUMERICHOST) {
return EAI_MEMORY;
return 0;
} else {
return EAI_NODATA;
return EAI_MEMORY;
return 0;
}
}
return 0;
}
#endif /* !HAVE_GETNAMEINFO */