#ifndef lint
-static char sccsid[] = "@(#)rlogind.c 4.12 83/02/28";
+static char sccsid[] = "@(#)rlogind.c 4.13 83/05/03";
#endif
#include <stdio.h>
int argc;
char **argv;
{
- int f, options = SO_KEEPALIVE;
+ int f, options = 0;
struct sockaddr_in from;
struct servent *sp;
if (options & SO_DEBUG)
if (setsockopt(f, SOL_SOCKET, SO_DEBUG, 0, 0) < 0)
perror("rlogind: setsockopt (SO_DEBUG)");
-#ifdef notdef
if (setsockopt(f, SOL_SOCKET, SO_KEEPALIVE, 0, 0) < 0)
- perror("rlogind: setsocktopt (SO_KEEPALIVE)");
-#endif
+ perror("rlogind: setsockopt (SO_KEEPALIVE)");
if (bind(f, &sin, sizeof (sin), 0) < 0) {
perror("rlogind: bind");
exit(1);
#ifndef lint
-static char sccsid[] = "@(#)rshd.c 4.14 83/02/23";
+static char sccsid[] = "@(#)rshd.c 4.15 83/05/03";
#endif
#include <sys/ioctl.h>
}
if (options & SO_DEBUG && setsockopt(f, SOL_SOCKET, SO_DEBUG, 0, 0) < 0)
perror("rshd: setsockopt (SO_DEBUG)");
-#ifdef notdef
if (setsockopt(f, SOL_SOCKET, SO_KEEPALIVE, 0, 0) < 0)
perror("rshd: setsockopt (SO_KEEPALIVE)");
-#endif
if (bind(f, (caddr_t)&sin, sizeof (sin), 0) < 0) {
perror("rshd: bind");
exit(1);
#ifndef lint
-static char sccsid[] = "@(#)telnetd.c 4.18 83/02/21";
+static char sccsid[] = "@(#)telnetd.c 4.19 83/05/03";
#endif
/*
#include <netinet/in.h>
+#include <arpa/telnet.h>
+
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <wait.h>
#include <netdb.h>
-#include "telnet.h"
-
#define BELL '\07'
char hisopts[256];
if (options & SO_DEBUG)
if (setsockopt(s, SOL_SOCKET, SO_DEBUG, 0, 0) < 0)
perror("telnetd: setsockopt (SO_DEBUG)");
-#ifdef notdef
if (setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, 0, 0) < 0)
perror("telnetd: setsockopt (SO_KEEPALIVE)");
-#endif
while (bind(s, (caddr_t)&sin, sizeof (sin), 0) < 0) {
perror("telnetd: bind");
sleep(5);