fixes q order problems and temporary file names when inchar > 'z'.
[unix-history] / usr / src / include / protocols / routed.h
index 88cf0bd..668dd09 100644 (file)
@@ -1,4 +1,4 @@
-/*     routed.h        82/06/05        4.4     */
+/*     routed.h        82/08/18        4.8     */
 /*
  * Routing Information Protocol
  *
 /*
  * Routing Information Protocol
  *
@@ -22,12 +22,17 @@ struct rip {
 #define        rip_tracefile   ripun.ru_tracefile
 };
  
 #define        rip_tracefile   ripun.ru_tracefile
 };
  
-#define        RIPCMD_REQUEST          0x1     /* want info */
-#define        RIPCMD_RESPONSE         0x2     /* responding to request */
-#define        RIPCMD_TRACEON          0x3     /* turn tracing on */
-#define        RIPCMD_TRACEOFF         0x4     /* turn it off */
+#define        RIPCMD_REQUEST          1       /* want info */
+#define        RIPCMD_RESPONSE         2       /* responding to request */
+#define        RIPCMD_TRACEON          3       /* turn tracing on */
+#define        RIPCMD_TRACEOFF         4       /* turn it off */
+
+#define        RIPCMD_MAX              5
+#ifdef RIPCMDS
+char *ripcmds[RIPCMD_MAX] =
+  { "#0", "REQUEST", "RESPONSE", "TRACEON", "TRACEOFF" };
+#endif
 
 
-#define IPPORT_ROUTESERVER     520     /* well-known port */
 #define        HOPCNT_INFINITY         16      /* per Xerox NS */
 #define        MAXPACKETSIZE           512     /* max broadcast size */
 
 #define        HOPCNT_INFINITY         16      /* per Xerox NS */
 #define        MAXPACKETSIZE           512     /* max broadcast size */
 
@@ -36,11 +41,11 @@ struct rip {
  * Every update forces an entry's timer to be reset.  After
  * EXPIRE_TIME without updates, the entry is marked invalid,
  * but held onto until GARBAGE_TIME so that others may
  * Every update forces an entry's timer to be reset.  After
  * EXPIRE_TIME without updates, the entry is marked invalid,
  * but held onto until GARBAGE_TIME so that others may
- * see it "be deleted".  If there's a reason to look for network
- * interface transitions do so every CHECK_INTERVAL seconds.
+ * see it "be deleted".
  */
 #define        TIMER_RATE              30      /* alarm clocks every 30 seconds */
  */
 #define        TIMER_RATE              30      /* alarm clocks every 30 seconds */
-#define        GARBAGE_TIME            210     /* time to garbage collect */
-#define        EXPIRE_TIME             180     /* time to mark entry invalid */
+
 #define        SUPPLY_INTERVAL         30      /* time to supply tables */
 #define        SUPPLY_INTERVAL         30      /* time to supply tables */
-#define        CHECK_INTERVAL          300     /* time to check for new interfaces */
+
+#define        EXPIRE_TIME             180     /* time to mark entry invalid */
+#define        GARBAGE_TIME            240     /* time to garbage collect */