/*
* Routines for testing only. Not really industrial strength.
*
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
#ifndef lint
#endif
/* System libraries. */
#include <netdb.h>
#include <stdio.h>
#include <syslog.h>
#include <setjmp.h>
#include <string.h>
#ifndef INADDR_NONE
#endif
extern char *malloc();
/* Application-specific. */
#include "tcpd.h"
#include "scaffold.h"
/*
* These are referenced by the options module and by rfc931.c.
*/
/* dup_hostent - create hostent in one memory block */
{
struct hostent_block {
};
int count;
char *data;
char *addr;
/* void */ ;
exit(1);
}
}
}
/* find_inet_addr - find all addresses for this host, result to free() */
char *host;
{
static struct hostent h;
/*
* Host address: translate it to internal form.
*/
h.h_addr_list = addr_list;
h.h_addr_list[0] = (char *) &addr;
return (dup_hostent(&h));
}
/*
* Map host name to a series of addresses. Watch out for non-internet
* forms or aliases. The NOT_INADDR() is here in case gethostbyname() has
* been "enhanced" to accept numeric addresses. Make a copy of the
* address list so that later gethostbyXXX() calls will not clobber it.
*/
if (NOT_INADDR(host) == 0) {
return (0);
}
return (0);
}
return (0);
}
}
return (dup_hostent(hp));
}
/* check_dns - give each address thorough workout, return address count */
char *host;
{
int count;
char *addr;
return (0);
/*
* Force host name and address conversions. Use the request structure
* its job.
*/
tcpd_warn("host address %s->name lookup failed",
}
return (count);
}
/* dummy function to intercept the real shell_cmd() */
/* ARGSUSED */
char *command;
{
if (hosts_access_verbose)
}
/* dummy function to intercept the real clean_exit() */
/* ARGSUSED */
struct request_info *request;
{
exit(0);
}
/* dummy function to intercept the real rfc931() */
/* ARGSUSED */
struct request_info *request;
{
}
/* check_path - examine accessibility */
char *path;
{
return (-1);
#ifdef notdef
#endif
}
return (0);
}