summaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-12-13 03:39:53 +0000
committerUlrich Drepper <drepper@redhat.com>2001-12-13 03:39:53 +0000
commit02647f687d9699bb62f9c89c6158c8860d589f56 (patch)
treeed94794379ee7363a4520814259546ce371134ec /nis
parentf13c308111c199877ea20be5e12e3418dc1f211b (diff)
Define parameters controlling __nis_findfastest.
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_intern.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/nis/nis_intern.h b/nis/nis_intern.h
index 53413eaae5..29a80a9188 100644
--- a/nis/nis_intern.h
+++ b/nis/nis_intern.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (c) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
@@ -22,6 +22,22 @@
#define __NIS_INTERN_H
#include <features.h>
+/* Configurable parameters for pinging NIS servers: */
+
+/* Number of retries. */
+#ifndef __NIS_PING_RETRY
+# define __NIS_PING_RETRY 2
+#endif
+/* Initial timeout in seconds. */
+#ifndef __NIS_PING_TIMEOUT_START
+# define __NIS_PING_TIMEOUT_START 3
+#endif
+/* Timeout increment for retries in seconds. */
+#ifndef __NIS_PING_TIMEOUT_INCREMENT
+# define __NIS_PING_TIMEOUT_INCREMENT 3
+#endif
+
+
__BEGIN_DECLS
struct nis_cb