blob: 997cb71a5680cd277dc94efd12723663430a2d8d [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);
akmhoque3560cb62012-09-09 10:52:30 -050022
23#endif