blob: 251cf2322b00f6c9159661e3c48ec07e218e158d [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
akmhoque8c50d0d2012-08-09 13:38:03 -05007struct name_prefix
8{
9 char *name;
10 int length;
11};
12
akmhoque59980a52012-08-09 12:36:09 -050013struct nlsr
14{
15
16 struct ccn_closure in_interest;
17 struct ccn_closure in_content;
18 struct ccn_schedule *sched;
19 struct ccn_scheduled_event *event;
20
21 struct hashtb *adl;
22 struct hashtb *npl;
23
24 struct ccn *ccn;
25 char *router_name;
26
27 int is_synch_init;
28};
29
30struct nlsr *nlsr;
31
32
33void ndn_rtr_gettime(const struct ccn_gettime *self, struct ccn_timeval *result);
34void process_command_router_name(char *command);
35void process_command_ccnname(char *command);
36void process_command_ccnneighbor(char *command);
37void process_conf_command(char *command);
38int readConfigFile(const char *filename);
39
40
41#endif