projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turn on keep alives
[unix-history]
/
usr
/
src
/
libexec
/
telnetd
/
telnetd.c
diff --git
a/usr/src/libexec/telnetd/telnetd.c
b/usr/src/libexec/telnetd/telnetd.c
index
a808fd3
..
1015310
100644
(file)
--- a/
usr/src/libexec/telnetd/telnetd.c
+++ b/
usr/src/libexec/telnetd/telnetd.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)telnetd.c 4.1
8 83/02/21
";
+static char sccsid[] = "@(#)telnetd.c 4.1
9 83/05/03
";
#endif
/*
#endif
/*
@@
-10,6
+10,8
@@
static char sccsid[] = "@(#)telnetd.c 4.18 83/02/21";
#include <netinet/in.h>
#include <netinet/in.h>
+#include <arpa/telnet.h>
+
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <errno.h>
@@
-17,8
+19,6
@@
static char sccsid[] = "@(#)telnetd.c 4.18 83/02/21";
#include <wait.h>
#include <netdb.h>
#include <wait.h>
#include <netdb.h>
-#include "telnet.h"
-
#define BELL '\07'
char hisopts[256];
#define BELL '\07'
char hisopts[256];
@@
-96,10
+96,8
@@
again:
if (options & SO_DEBUG)
if (setsockopt(s, SOL_SOCKET, SO_DEBUG, 0, 0) < 0)
perror("telnetd: setsockopt (SO_DEBUG)");
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)");
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);
while (bind(s, (caddr_t)&sin, sizeof (sin), 0) < 0) {
perror("telnetd: bind");
sleep(5);