Name Prefixt Table Manipulation
diff --git a/nlsr_route.h b/nlsr_route.h
index 0e7884b..ec243e9 100644
--- a/nlsr_route.h
+++ b/nlsr_route.h
@@ -4,12 +4,22 @@
#define EMPTY_PARENT -12345
#define INF_DISTANCE 2147483647
+#define NO_NEXT_HOP -4321
+
struct map_entry
{
char *router;
int mapping;
};
+
+struct routing_table_entry
+{
+ char *dest_router;
+ int next_hop_face;
+}
+;
+
int route_calculate(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags);
void make_map(void);
void add_map_entry(char *router);
@@ -26,4 +36,12 @@
void print_path(long int *parent, long int dest);
void print_all_path_from_source(long int *parent,long int source);
+/* Routing Table Relates function */
+
+int get_next_hop(char *dest_router);
+void add_next_hop_router(char *dest_router);
+void add_next_hop_from_lsa_adj_body(char *body, int no_link);
+void print_routing_table(void);
+void do_old_routing_table_updates();
+
#endif