]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/tymo/routing_table.h
Initial tymo commit
[tinyos-2.x.git] / tos / lib / net / tymo / routing_table.h
diff --git a/tos/lib/net/tymo/routing_table.h b/tos/lib/net/tymo/routing_table.h
new file mode 100644 (file)
index 0000000..b9a54cd
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2007 Romain Thouvenin <romain.thouvenin@gmail.com>
+ * Published under the terms of the GNU General Public License (GPLv2).
+ */
+
+#ifndef _ROUTING_TABLE_H_
+#define _ROUTING_TABLE_H_
+
+#include "routing.h"
+
+/**
+ * Types associated to a routing table.
+ */
+
+typedef struct rt_info {
+  addr_t address;
+  addr_t nexthop;
+  seqnum_t seqnum;
+  bool has_hopcnt;
+  uint8_t hopcnt;
+} rt_info_t;
+
+typedef enum {
+  REASON_FULL,
+  REASON_OLD,
+  REASON_UNREACHABLE
+} reason_t;
+
+#endif