blob: 2b15b8bdbcbbe19dbf6040de37c51cd8d5da0e44 [file] [log] [blame]
akmhoque59980a52012-08-09 12:36:09 -05001#ifndef _NLSR_H_
2#define _NLSR_H_
3
4#define LSA_ADJ_TYPE 1
5#define LSA_NAME_TYPE 2
6
7struct 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
24struct nlsr *nlsr;
25
26
27void ndn_rtr_gettime(const struct ccn_gettime *self, struct ccn_timeval *result);
28void process_command_router_name(char *command);
29void process_command_ccnname(char *command);
30void process_command_ccnneighbor(char *command);
31void process_conf_command(char *command);
32int readConfigFile(const char *filename);
33
34
35#endif