blob: f469f249e1c60b25f4741cad23bfe768958bb3bc [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);
akmhoqueffacaa82012-09-13 17:48:30 -050020int delete_npt_entry(char *orig_router, char *name_prefix);
akmhoque3560cb62012-09-09 10:52:30 -050021void print_npt(void);
akmhoque810a5b52012-09-09 16:53:14 -050022void delete_orig_router_from_npt(char *orig_router,int next_hop_face);
akmhoquefbfd0982012-09-09 20:59:03 -050023void update_npt_with_new_route(char * orig_router,int next_hop_face);
24void destroy_all_face_by_nlsr(void);
akmhoque3560cb62012-09-09 10:52:30 -050025
26#endif