I asked Bill Paul why _getnetbynis() was only being called with 2 parameters,

and he said:

	The 3rd agrument is new; looks like it was part of the upgrade to
	a new BIND with some IPv6 support. The third argument here should be
	AF_INET. In order for it to be anything else, I'd have to add new
	NIS functions to support IPv6 lookups. I don't even know what those
	look like yet.

So there ya go, add AF_INET as the 3rd argument to the call.

Submitted-by: wpaul
This commit is contained in:
Jordan K. Hubbard 1996-12-06 00:12:31 +00:00
parent ed5b7817a4
commit 380577b434

View File

@ -24,8 +24,8 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.5 1996/03/23 22:16:22 wpaul Exp $";
static char rcsid[] = "$Id: getnetbynis.c,v 1.5 1996/03/23 22:16:22 wpaul Exp $";
static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.6 1996/08/29 20:08:01 peter Exp $";
static char rcsid[] = "$Id: getnetbynis.c,v 1.6 1996/08/29 20:08:01 peter Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@ -125,7 +125,7 @@ struct netent *
_getnetbynisname(name)
const char *name;
{
return _getnetbynis(name, "networks.byname");
return _getnetbynis(name, "networks.byname", AF_INET);
}
struct netent *