blob: ae4f1232d8d96f27ae514d55c1972d3a0cf46fda [file] [log] [blame]
akmhoque3560cb62012-09-09 10:52:30 -05001#ifndef _NLSR_NPT_H_
2#define _NLSR_NPT_H_
3
4#define NO_FACE -12345
5
6struct npt_entry
7{
akmhoque810a5b52012-09-09 16:53:14 -05008 char *orig_router;
9 struct hashtb *name_list;
akmhoquede61ba92012-09-20 22:19:12 -050010 //int next_hop_face;
11 struct hashtb *face_list;
akmhoque3560cb62012-09-09 10:52:30 -050012};
13
akmhoque810a5b52012-09-09 16:53:14 -050014struct name_list_entry
akmhoque3560cb62012-09-09 10:52:30 -050015{
akmhoque810a5b52012-09-09 16:53:14 -050016 char *name;
akmhoque3560cb62012-09-09 10:52:30 -050017};
18
19
akmhoquede61ba92012-09-20 22:19:12 -050020int add_npt_entry(char *orig_router, char *name_prefix, int num_face, int *faces, int *route_costs);
akmhoqueffacaa82012-09-13 17:48:30 -050021int delete_npt_entry(char *orig_router, char *name_prefix);
akmhoque3560cb62012-09-09 10:52:30 -050022void print_npt(void);
akmhoquede61ba92012-09-20 22:19:12 -050023void delete_orig_router_from_npt(char *orig_router);
24//void update_npt_with_new_route(char * orig_router,int next_hop_face);
25void update_npt_with_new_route();
akmhoquefbfd0982012-09-09 20:59:03 -050026void destroy_all_face_by_nlsr(void);
akmhoque3560cb62012-09-09 10:52:30 -050027
28#endif