akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 1 | #ifndef _NLSR_NPL_H_ |
| 2 | #define _NLSR_NPL_H_ |
| 3 | |
akmhoque | 3171d65 | 2012-11-13 11:44:33 -0600 | [diff] [blame] | 4 | struct name_prefix_list_entry |
| 5 | { |
| 6 | struct name_prefix *np; |
| 7 | long int name_lsa_id; |
| 8 | }; |
| 9 | |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 10 | void add_name_to_npl(struct name_prefix *np); |
| 11 | void print_name_prefix_from_npl(void); |
akmhoque | 3171d65 | 2012-11-13 11:44:33 -0600 | [diff] [blame] | 12 | int does_name_exist_in_npl(struct name_prefix *np); |
| 13 | void update_nlsa_id_for_name_in_npl(struct name_prefix *np, long int nlsa_id); |
| 14 | long int get_lsa_id_from_npl(struct name_prefix *np); |
akmhoque | e6f98a1 | 2013-02-22 10:33:26 -0600 | [diff] [blame] | 15 | void destroy_npl(void); |
| 16 | void destroy_npl_entry_component(struct name_prefix_list_entry *npe); |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 17 | #endif |