commit | 3560cb6869b14ce06a9fe43f57766fb5fce9558f | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Sun Sep 09 10:52:30 2012 -0500 |
committer | akmhoque <akmhoque@gmail.com> | Sun Sep 09 10:52:30 2012 -0500 |
tree | 6aa8cf4ebb7047ea6732313953b098c2a868fed5 | |
parent | 29c1db5068b34e33e8a5ee14c149fdb43334af63 [diff] [blame] |
Name Prefixt Table Manipulation
diff --git a/nlsr_npt.h b/nlsr_npt.h new file mode 100644 index 0000000..48ef6d4 --- /dev/null +++ b/nlsr_npt.h
@@ -0,0 +1,22 @@ +#ifndef _NLSR_NPT_H_ +#define _NLSR_NPT_H_ + +#define NO_FACE -12345 + +struct npt_entry +{ + char *name_prefix; + struct hashtb *next_hop_table; +}; + +struct next_hop_entry +{ + char *orig_router; + int next_hop_face; +}; + + +int add_npt_entry(char *orig_router, char *name_prefix, int face); +void print_npt(void); + +#endif