forked from NDN-Routing/NLSR0.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlsr_km_util.h
36 lines (26 loc) · 864 Bytes
/
nlsr_km_util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _NLSR_KM_UTIL_H_
#define _NLSR_KM_UTIL_H_
int
contain_key_name(const unsigned char *ccnb,
struct ccn_parsed_ContentObject *pco);
struct ccn_charbuf *
get_key_name(const unsigned char *ccnb,
struct ccn_parsed_ContentObject *pco);
int
check_for_name_component_in_name(const struct ccn_charbuf *name,
const struct ccn_indexbuf *indx,
const char *component);
int
check_for_tag_component_in_name(const struct ccn_charbuf *name,
const struct ccn_indexbuf *indx,
const char *component);
enum key_type
get_key_type_from_key_name(struct ccn_charbuf *keyname);
int
appendLifetime(struct ccn_charbuf *cb, int lifetime);
char *
get_orig_router_from_key_name(struct ccn_charbuf *name, int more, int type);
char *
get_name_segments_from_name(struct ccn_charbuf *name,
int start_indx, int end_indx);
#endif