blob: 1feab1ec6756fee800cb2d8d8d2716ea3291b865 [file] [log] [blame]
akmhoque59980a52012-08-09 12:36:09 -05001#ifndef _NLSR_NDN_H_
2#define _NLSR_NDN_H_
3
akmhoqued79438d2012-08-27 13:31:42 -05004int appendLifetime(struct ccn_charbuf *cb, int lifetime);
akmhoque03004e62012-09-06 01:12:28 -05005void get_nbr(struct name_prefix *nbr,struct ccn_closure *selfp, struct ccn_upcall_info *info);
6void get_lsa_identifier(struct name_prefix *lsaId,struct ccn_closure *selfp, struct ccn_upcall_info *info,int offset);
7void get_lsdb_version(char *lsdb_version,struct ccn_closure *selfp, struct ccn_upcall_info *info );
8int get_ls_type(struct ccn_closure *selfp, struct ccn_upcall_info *info);
9
akmhoque59980a52012-08-09 12:36:09 -050010enum ccn_upcall_res incoming_interest(struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *info);
akmhoque03004e62012-09-06 01:12:28 -050011
akmhoque1c9b92f2012-08-13 10:57:50 -050012void process_incoming_interest(struct ccn_closure *selfp, struct ccn_upcall_info *info);
akmhoqued79438d2012-08-27 13:31:42 -050013void process_incoming_interest_info(struct ccn_closure *selfp, struct ccn_upcall_info *info);
akmhoque53f64222012-09-05 13:57:51 -050014void process_incoming_interest_lsdb(struct ccn_closure *selfp, struct ccn_upcall_info *info);
15void process_incoming_interest_lsa(struct ccn_closure *selfp, struct ccn_upcall_info *info);
16
akmhoque53f64222012-09-05 13:57:51 -050017
akmhoque03004e62012-09-06 01:12:28 -050018enum ccn_upcall_res incoming_content(struct ccn_closure* selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info* info);
akmhoque53f64222012-09-05 13:57:51 -050019void process_incoming_content(struct ccn_closure *selfp, struct ccn_upcall_info* info);
20void process_incoming_content_info(struct ccn_closure *selfp, struct ccn_upcall_info* info);
21void process_incoming_content_lsdb(struct ccn_closure *selfp, struct ccn_upcall_info* info);
22void process_incoming_content_lsa(struct ccn_closure *selfp, struct ccn_upcall_info* info);
akmhoque59980a52012-08-09 12:36:09 -050023
akmhoquecb017752012-08-16 11:03:45 -050024void process_incoming_timed_out_interest(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoqued79438d2012-08-27 13:31:42 -050025void process_incoming_timed_out_interest_info(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoque29c1db52012-09-07 14:47:43 -050026void process_incoming_timed_out_interest_lsdb(struct ccn_closure* selfp, struct ccn_upcall_info* info);
27void process_incoming_timed_out_interest_lsa(struct ccn_closure* selfp, struct ccn_upcall_info* info);
akmhoquecb017752012-08-16 11:03:45 -050028
akmhoqued79438d2012-08-27 13:31:42 -050029int send_info_interest(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags);
akmhoque53f64222012-09-05 13:57:51 -050030void send_info_interest_to_neighbor(struct name_prefix *nbr);
31
32int send_lsdb_interest(struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags);
33void send_lsdb_interest_to_nbr(struct name_prefix *nbr);
akmhoque53f64222012-09-05 13:57:51 -050034void send_interest_for_name_lsa(struct name_prefix *nbr, char *orig_router, char *ls_type, char *ls_id);
35void send_interest_for_adj_lsa(struct name_prefix *nbr, char *orig_router, char *ls_type);
akmhoque59980a52012-08-09 12:36:09 -050036
37#endif