Update in sending Info Interest
diff --git a/nlsr.h b/nlsr.h
index d6779b8..0cd71e8 100644
--- a/nlsr.h
+++ b/nlsr.h
@@ -3,6 +3,9 @@
#define LSA_ADJ_TYPE 1
#define LSA_NAME_TYPE 2
+#define LSDB_SYNCH_INTERVAL 300
+#define INTEREST_RETRY 3
+#define INTEREST_RESEND_TIME 15
struct name_prefix
{
@@ -16,6 +19,7 @@
int face;
int status;
long int last_lsdb_version;
+ int info_interest_timed_out;
struct hashtb *lsa_update_queue;
};
@@ -34,6 +38,9 @@
struct ccn_schedule *sched;
struct ccn_scheduled_event *event;
struct ccn_scheduled_event *event_send_lsdb_interest;
+ struct ccn_scheduled_event *event_send_info_interest;
+ struct ccn_scheduled_event *event_build_name_lsa;
+ struct ccn_scheduled_event *event_build_adj_lsa;
struct hashtb *adl;
struct hashtb *npl;
@@ -45,6 +52,13 @@
int is_synch_init;
long int nlsa_id;
+ int adj_build_flag;
+ long int adj_build_count;
+
+ long int lsdb_synch_interval;
+ int interest_retry;
+ long int interest_resend_time;
+
};
struct nlsr *nlsr;
@@ -55,6 +69,9 @@
void process_command_router_name(char *command);
void process_command_ccnname(char *command);
void process_command_ccnneighbor(char *command);
+void process_command_lsdb_synch_interval(char *command);
+void process_command_interest_retry(char *command);
+void process_command_interest_resend_time(char *command);
void process_conf_command(char *command);
int readConfigFile(const char *filename);