akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 1 | #ifndef _NLSR_ADL_H_ |
| 2 | #define _NLSR_ADL_H_ |
| 3 | |
akmhoque | 42098b1 | 2012-08-27 22:54:23 -0500 | [diff] [blame] | 4 | #define NBR_ACTIVE 1 |
| 5 | #define NBR_DOWN 0 |
| 6 | |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame^] | 7 | void add_adjacent_to_adl(struct name_prefix *np, int face); |
| 8 | void print_adjacent(struct ndn_neighbor *nbr); |
akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 9 | void print_adjacent_from_adl(void); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame^] | 10 | void update_adjacent_status_to_adl(struct name_prefix *nbr, int status); |
| 11 | int get_adjacent_status(struct name_prefix *nbr); |
| 12 | void update_adjacent_lsdb_version_to_adl(struct name_prefix *nbr, char * version); |
| 13 | void update_lsdb_synch_interval_to_adl(struct name_prefix *nbr, long int interval); |
akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 14 | |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame^] | 15 | int get_timed_out_number(struct name_prefix *nbr); |
| 16 | void update_adjacent_timed_out_to_adl(struct name_prefix *nbr, int increment); |
| 17 | void update_adjacent_timed_out_zero_to_adl(struct name_prefix *nbr); |
| 18 | |
| 19 | int is_adj_lsa_build(void); |
| 20 | int no_active_nbr(void); |
| 21 | long int len_active_nbr_data(void); |
| 22 | void get_active_nbr_adj_data(struct ccn_charbuf *c); |
| 23 | char * get_nbr_lsdb_version(char *nbr); |
| 24 | void update_adjacent_last_lsdb_requested_to_adl(char *nbr, long int timestamp); |
| 25 | long int get_nbr_last_lsdb_requested(char *nbr); |
| 26 | long int get_nbr_time_diff_lsdb_req(char *nbr); |
| 27 | long int get_lsdb_synch_interval(char *nbr); |
| 28 | void set_is_lsdb_send_interest_scheduled_to_zero(char *nbr); |
| 29 | |
| 30 | void adjust_adjacent_last_lsdb_requested_to_adl(char *nbr, long int sec); |
| 31 | //long int get_lsdb_synch_interval(char *nbr); |
| 32 | |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 33 | |
akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 34 | #endif |