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 | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 7 | void add_adjacent_to_adl(struct ndn_neighbor *nbr); |
| 8 | void print_adjacent_from_adl(void); |
| 9 | void update_adjacent_status_to_adl(struct ccn_charbuf *nbr, int status); |
akmhoque | f6432c2 | 2012-08-21 13:18:05 -0400 | [diff] [blame] | 10 | void update_adjacent_lsdb_version_to_adl(struct ccn_charbuf *nbr, long int version); |
akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 11 | |
akmhoque | d79438d | 2012-08-27 13:31:42 -0500 | [diff] [blame] | 12 | int get_timed_out_number(struct ccn_charbuf *nbr); |
| 13 | void update_adjacent_timed_out_to_adl(struct ccn_charbuf *nbr, int increment); |
| 14 | void update_adjacent_timed_out_zero_to_adl(struct ccn_charbuf *nbr); |
| 15 | |
akmhoque | 8a5babe | 2012-08-16 17:39:33 -0500 | [diff] [blame] | 16 | #endif |