blob: d5643123f1f42c8d594a341c1069ab5ef2722738 [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;
10 int next_hop_face;
akmhoque3560cb62012-09-09 10:52:30 -050011};
12
akmhoque810a5b52012-09-09 16:53:14 -050013struct name_list_entry
akmhoque3560cb62012-09-09 10:52:30 -050014{
akmhoque810a5b52012-09-09 16:53:14 -050015 char *name;
akmhoque3560cb62012-09-09 10:52:30 -050016};
17
18
19int add_npt_entry(char *orig_router, char *name_prefix, int face);
20void print_npt(void);
akmhoque810a5b52012-09-09 16:53:14 -050021void delete_orig_router_from_npt(char *orig_router,int next_hop_face);
akmhoquefbfd0982012-09-09 20:59:03 -050022void update_npt_with_new_route(char * orig_router,int next_hop_face);
23void destroy_all_face_by_nlsr(void);
akmhoque3560cb62012-09-09 10:52:30 -050024
25#endif