summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98d.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-04-21 09:51:03 +0200
committerRalf Baechle <ralf@linux-mips.org>1999-04-21 09:51:03 +0200
commit17287576555a5c46fa23549e2e5f073660dccb70 (patch)
tree08be5f5005dad609a2803758b8b825170f6701cb /tcpip/rip98d.h
Import ax25-tools 0.0.1 from tarballax25-tools-0.0.1
Diffstat (limited to 'tcpip/rip98d.h')
-rw-r--r--tcpip/rip98d.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/tcpip/rip98d.h b/tcpip/rip98d.h
new file mode 100644
index 0000000..fb00a7d
--- /dev/null
+++ b/tcpip/rip98d.h
@@ -0,0 +1,58 @@
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#define RIP_PORT 520
+
+#define RIPCMD_REQUEST 1
+#define RIPCMD_RESPONSE 2
+
+#define RIP98_INFINITY 16
+
+#define RIP_VERSION_98 98
+
+#define RIP_AF_INET 2
+
+#define RIP98_HEADER 4
+#define RIP98_ENTRY 6
+
+#define RIP98_MAX_FRAME 30
+
+struct route_struct {
+ struct route_struct *next;
+ struct in_addr addr;
+ int bits;
+ int metric;
+#define ORIG_ROUTE 0
+#define FIXED_ROUTE 1
+#define NEW_ROUTE 2
+#define DEL_ROUTE 3
+ int action;
+};
+
+extern struct route_struct *first_route;
+
+struct dest_struct {
+ struct in_addr dest_addr;
+};
+
+extern struct dest_struct dest_list[];
+
+extern int dest_count;
+
+extern int debug;
+extern int restrict;
+extern int logging;
+
+/* In rip98d.c */
+extern unsigned int mask2bits(unsigned long int);
+extern unsigned long int bits2mask(unsigned int);
+
+/* In rip98t.c */
+extern void transmit_routes(int);
+
+/* In rip98r.c */
+extern void receive_routes(int);