]> mj.ucw.cz Git - nwho.git/blobdiff - net.h
Remember down servers for some time.
[nwho.git] / net.h
diff --git a/net.h b/net.h
index de3a11f67055d4535ff644c5286c1bee357f5c4a..7b65eca11c096f32864d3057ce28d6dff6104a60 100644 (file)
--- a/net.h
+++ b/net.h
@@ -1,7 +1,7 @@
 /*
  *     The Remote User Info Distribution Protocol
  *
- *     (c) 1997--2001 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997--2002 Martin Mares <mj@ucw.cz>
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU General Public License. See file COPYING in any of the GNU packages.
@@ -28,9 +28,11 @@ struct rywho_pkt {
   struct userinfo users[MAX_USERS];
 };
 
-#define NWHO_SPOOL_DIR "/var/spool/nwho"
+#define NWHO_SPOOL_DIR "/var/state/nwho"
 #define NWHO_MAGIC 0x21913332
+#define NWHO_PORT 811
 
 #define DEFAULT_SEND_TIME 30
 #define DEFAULT_PRUNE_TIME 30
-#define DEFAULT_DEAD_TIME 120
+#define DEFAULT_DOWN_TIME 120
+#define DEFAULT_DEAD_TIME 4*86400