ptx.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Release 4. Some important functions are not present so we are limited to
* IP-based services.
*
* Diagnostics are reported through syslog(3).
*
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
#ifndef lint
#endif
#ifdef PTX
/* System libraries. */
#include <stropts.h>
#include <netdb.h>
#include <stdio.h>
#include <syslog.h>
/* Local stuff. */
#include "tcpd.h"
/* Forward declarations. */
static void ptx_sink();
/* tli_host - determine TLI endpoint info, PTX version */
struct request_info *request;
{
static struct sockaddr_in client;
static struct sockaddr_in server;
/*
* getpeerinaddr() was suggested by someone at Sequent. It seems to work
* with connection-oriented (TCP) services such as rlogind and telnetd,
* but it returns 0.0.0.0 with datagram (UDP) services. No problem: UDP
* needs special treatment anyway, in case we must refuse service.
*/
} else {
tcpd_warn("warning: getmyinaddr: %m");
}
} else {
/*
* Another suggestion was to temporarily switch to the socket
* interface, identify the endpoint addresses with socket calls, then
* to switch back to TLI. This seems to works OK with UDP services,
* which is exactly what we should be looking at right now.
*/
tcpd_warn("replace timod by sockmod: %m");
tcpd_warn("replace sockmod by timod: %m");
}
}
/* ptx_sink - absorb unreceived IP datagram */
int fd;
{
/*
* Eat up the not-yet received datagram. Where needed, switch to the
* socket programming interface.
*/
}
#endif /* PTX */