akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame^] | 1 | #ifndef _NLSR_H_ |
| 2 | #define _NLSR_H_ |
| 3 | |
| 4 | #define LSA_ADJ_TYPE 1 |
| 5 | #define LSA_NAME_TYPE 2 |
| 6 | |
| 7 | struct nlsr |
| 8 | { |
| 9 | |
| 10 | struct ccn_closure in_interest; |
| 11 | struct ccn_closure in_content; |
| 12 | struct ccn_schedule *sched; |
| 13 | struct ccn_scheduled_event *event; |
| 14 | |
| 15 | struct hashtb *adl; |
| 16 | struct hashtb *npl; |
| 17 | |
| 18 | struct ccn *ccn; |
| 19 | char *router_name; |
| 20 | |
| 21 | int is_synch_init; |
| 22 | }; |
| 23 | |
| 24 | struct nlsr *nlsr; |
| 25 | |
| 26 | |
| 27 | void ndn_rtr_gettime(const struct ccn_gettime *self, struct ccn_timeval *result); |
| 28 | void process_command_router_name(char *command); |
| 29 | void process_command_ccnname(char *command); |
| 30 | void process_command_ccnneighbor(char *command); |
| 31 | void process_conf_command(char *command); |
| 32 | int readConfigFile(const char *filename); |
| 33 | |
| 34 | |
| 35 | #endif |