akmhoque | 3560cb6 | 2012-09-09 10:52:30 -0500 | [diff] [blame] | 1 | #ifndef _NLSR_NPT_H_ |
| 2 | #define _NLSR_NPT_H_ |
| 3 | |
| 4 | #define NO_FACE -12345 |
| 5 | |
| 6 | struct npt_entry |
| 7 | { |
akmhoque | 810a5b5 | 2012-09-09 16:53:14 -0500 | [diff] [blame] | 8 | char *orig_router; |
| 9 | struct hashtb *name_list; |
| 10 | int next_hop_face; |
akmhoque | 3560cb6 | 2012-09-09 10:52:30 -0500 | [diff] [blame] | 11 | }; |
| 12 | |
akmhoque | 810a5b5 | 2012-09-09 16:53:14 -0500 | [diff] [blame] | 13 | struct name_list_entry |
akmhoque | 3560cb6 | 2012-09-09 10:52:30 -0500 | [diff] [blame] | 14 | { |
akmhoque | 810a5b5 | 2012-09-09 16:53:14 -0500 | [diff] [blame] | 15 | char *name; |
akmhoque | 3560cb6 | 2012-09-09 10:52:30 -0500 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | |
| 19 | int add_npt_entry(char *orig_router, char *name_prefix, int face); |
| 20 | void print_npt(void); |
akmhoque | 810a5b5 | 2012-09-09 16:53:14 -0500 | [diff] [blame] | 21 | void delete_orig_router_from_npt(char *orig_router,int next_hop_face); |
akmhoque | fbfd098 | 2012-09-09 20:59:03 -0500 | [diff] [blame] | 22 | void update_npt_with_new_route(char * orig_router,int next_hop_face); |
| 23 | void destroy_all_face_by_nlsr(void); |
akmhoque | 3560cb6 | 2012-09-09 10:52:30 -0500 | [diff] [blame] | 24 | |
| 25 | #endif |