try-from.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* This program can be called via a remote shell command to find out if the
* hostname and address are properly recognized, if username lookup works,
* and (SysV only) if the TLI on top of IP heuristics work.
*
*
* Diagnostics are reported through syslog(3) and redirected to stderr.
*
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
#ifndef lint
static char sccsid[] = "@(#) try-from.c 1.2 94/12/28 17:42:55";
#endif
/* System libraries. */
#include <stdio.h>
#include <syslog.h>
#include <string.h>
#ifdef TLI
#include <stropts.h>
#endif
#ifndef STDIN_FILENO
#define STDIN_FILENO 0
#endif
/* Local stuff. */
#include "tcpd.h"
int argc;
char **argv;
{
struct request_info request;
char *cp;
/*
* Simplify the process name, just like tcpd would.
*/
/*
* Turn on the "IP-underneath-TLI" detection heuristics.
*/
#ifdef TLI
#endif /* TLI */
/*
* Look up the endpoint information.
*/
/*
* Show some results. Name and address information is looked up when we
* ask for it.
*/
return (0);
}