*not* MAXHOSTNAMELEN, which is the maximum length
of an argument to gethostname or sethostname.
Look for arpa/nameser.h to find this constant,
defining it to 256 inf not present in an included file.
Call USE_ANAME in the configure.in, so db library is included.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7549
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Feb 26 03:33:48 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * configure.in: Call USE_ANAME
+
+Sun Feb 25 20:26:00 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * telnetd.c: Use MAXDNAME not MAXHOSTNAMELEN; MAXHOSTNAMELEN is
+ only for gethostname() and sethostname() and has nothing to do
+ with domains.
+
+ * configure.in : Check for arpa/nameser.h for MAXDNAME
+
Tue Feb 13 16:23:23 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ext.h, utility.c (fatalperror, fatal): Add const to argument.
CONFIG_RULES
AC_PROG_INSTALL
AC_CHECK_LIB(util,main)
+USE_ANAME
AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
LIBS="$LIBS -ltermcap")
AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
fi
fi
AC_HEADER_TIME
-AC_CHECK_HEADERS(string.h)
+AC_CHECK_HEADERS(string.h arpa/nameser.h)
AC_CHECK_HEADERS(sys/time.h sys/tty.h)
AC_HAVE_FUNCS(vhangup)
AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY))
return(0);
return(1);
}
+#if HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 64
-#endif /* MAXHOSTNAMELEN */
+#ifndef MAXDNAME
+#define MAXDNAME 256 /*per the rfc*/
+#endif
char *hostname;
-char host_name[MAXHOSTNAMELEN];
-char remote_host_name[MAXHOSTNAMELEN];
+char host_name[MAXDNAME];
+char remote_host_name[MAXDNAME];
#ifndef convex
extern void telnet P((int, int));