OpenHIP 0.9svn1
|
Go to the source code of this file.
Defines | |
#define | hipcfg_init_fn "hipcfg_init" |
#define | hipcfg_close_fn "hipcfg_close" |
#define | hipcfg_allowed_peers_fn "hipcfg_allowed_peers" |
#define | hipcfg_peers_allowed_fn "hipcfg_peers_allowed" |
#define | hipcfg_setUnderlayIpAddress_fn "hipcfg_setUnderlayIpAddress" |
#define | hipcfg_getEndboxByLegacyNode_fn "hipcfg_getEndboxByLegacyNode" |
#define | hipcfg_getLlipByEndbox_fn "hipcfg_getLlipByEndbox" |
#define | hipcfg_getLegacyNodesByEndbox_fn "hipcfg_getLegacyNodesByEndbox" |
#define | hipcfg_verifyCert_fn "hipcfg_verifyCert" |
#define | hipcfg_getLocalCertUrl_fn "hipcfg_getLocalCertUrl" |
#define | hipcfg_postLocalCert_fn "hipcfg_postLocalCert" |
#define | hipcfg_getMyHostId_fn "hipcfg_getMyHostId" |
#define | hipcfg_getPeerNodes_fn "hipcfg_getPeerNodes" |
Functions | |
int | hipcfg_init (char *dlname, struct hip_conf *hc) |
int | hipcfg_close () |
int | hipcfg_allowed_peers (const hip_hit hit1, const hip_hit hit2) |
int | hipcfg_peers_allowed (hip_hit *hits1, hip_hit *hits2, int max_cnt) |
int | hipcfg_setUnderlayIpAddress (const char *ip) |
int | hipcfg_getEndboxByLegacyNode (const struct sockaddr *host, struct sockaddr *eb) |
int | hipcfg_getLlipByEndbox (const struct sockaddr *eb, struct sockaddr *llip) |
int | hipcfg_getLegacyNodesByEndbox (const struct sockaddr *eb, struct sockaddr_storage *hosts, int size) |
int | hipcfg_verifyCert (const char *url, const hip_hit hit1) |
int | hipcfg_getLocalCertUrl (char *url, unsigned int size) |
int | hipcfg_postLocalCert (const char *hit) |
hi_node * | hipcfg_getMyHostId () |
int | hipcfg_getPeerNodes (struct peer_node *peerNodes, unsigned int max_count) |
Variables | |
int(* | hipcfg_init_p )(struct hip_conf *hc) |
int(* | hipcfg_close_p )() |
int(* | hipcfg_allowed_peers_p )(const hip_hit hit1, const hip_hit hit2) |
int(* | hipcfg_peers_allowed_p )(hip_hit *hits1, hip_hit *hits2, int max_cnt) |
int(* | hipcfg_setUnderlayIpAddress_p )(const char *ip) |
int(* | hipcfg_getEndboxByLegacyNode_p )(const struct sockaddr *host, struct sockaddr *eb) |
int(* | hipcfg_getLlipByEndbox_p )(const struct sockaddr *eb, struct sockaddr *llip) |
int(* | hipcfg_getLegacyNodesByEndbox_p )(const struct sockaddr *eb, struct sockaddr_storage *hosts, int size) |
int(* | hipcfg_verifyCert_p )(const char *url, const hip_hit hit1) |
int(* | hipcfg_getLocalCertUrl_p )(char *url, unsigned int size) |
int(* | hipcfg_postLocalCert_p )(const char *hit) |
hi_node *(* | hipcfg_getMyHostId_p )() |
int(* | hipcfg_getPeerNodes_p )(struct peer_node *peerNodes, unsigned int max_count) |
#define hipcfg_allowed_peers_fn "hipcfg_allowed_peers" |
Referenced by hipcfg_init().
#define hipcfg_close_fn "hipcfg_close" |
Referenced by hipcfg_init().
#define hipcfg_getEndboxByLegacyNode_fn "hipcfg_getEndboxByLegacyNode" |
Referenced by hipcfg_init().
#define hipcfg_getLegacyNodesByEndbox_fn "hipcfg_getLegacyNodesByEndbox" |
Referenced by hipcfg_init().
#define hipcfg_getLlipByEndbox_fn "hipcfg_getLlipByEndbox" |
Referenced by hipcfg_init().
#define hipcfg_getLocalCertUrl_fn "hipcfg_getLocalCertUrl" |
Referenced by hipcfg_init().
#define hipcfg_getMyHostId_fn "hipcfg_getMyHostId" |
Referenced by hipcfg_init().
#define hipcfg_getPeerNodes_fn "hipcfg_getPeerNodes" |
Referenced by hipcfg_init().
#define hipcfg_init_fn "hipcfg_init" |
Referenced by hipcfg_init().
#define hipcfg_peers_allowed_fn "hipcfg_peers_allowed" |
Referenced by hipcfg_init().
#define hipcfg_postLocalCert_fn "hipcfg_postLocalCert" |
Referenced by hipcfg_init().
#define hipcfg_setUnderlayIpAddress_fn "hipcfg_setUnderlayIpAddress" |
Referenced by hipcfg_init().
#define hipcfg_verifyCert_fn "hipcfg_verifyCert" |
Referenced by hipcfg_init().
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipcfg_allowed_peers_p, and hipCfg::hit_peer_allowed().
Referenced by hip_handle_I1(), is_valid_packet(), and main().
int hipcfg_close | ( | ) |
References hipCfg::closeCfg(), hipCfgMap::getInstance(), hipCfgFiles::getInstance(), and hipcfg_close_p.
Referenced by hip_exit().
int hipcfg_getEndboxByLegacyNode | ( | const struct sockaddr * | host, |
struct sockaddr * | eb | ||
) |
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipcfg_getEndboxByLegacyNode_p, and hipCfg::legacyNodeToEndbox().
Referenced by endbox_check_cert(), is_valid_packet(), and main().
int hipcfg_getLegacyNodesByEndbox | ( | const struct sockaddr * | eb, |
struct sockaddr_storage * | hosts, | ||
int | size | ||
) |
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipCfg::getLegacyNodesByEndbox(), and hipcfg_getLegacyNodesByEndbox_p.
Referenced by hi_to_xml(), and main().
int hipcfg_getLlipByEndbox | ( | const struct sockaddr * | eb, |
struct sockaddr * | llip | ||
) |
References hipCfg::endbox2Llip(), hipCfgMap::getInstance(), hipCfgFiles::getInstance(), and hipcfg_getLlipByEndbox_p.
Referenced by hip_convert_lsi_to_peer(), and main().
int hipcfg_getLocalCertUrl | ( | char * | url, |
unsigned int | size | ||
) |
References hipCfgFiles::getInstance(), hipCfg::getLocalCertUrl(), and hipcfg_getLocalCertUrl_p.
Referenced by main().
hi_node* hipcfg_getMyHostId | ( | ) |
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipCfg::getMyHostId(), and hipcfg_getMyHostId_p.
Referenced by main(), and main_loop().
int hipcfg_getPeerNodes | ( | struct peer_node * | peerNodes, |
unsigned int | max_count | ||
) |
References hipcfg_getPeerNodes_p.
Referenced by main().
int hipcfg_init | ( | char * | dlname, |
struct hip_conf * | hc | ||
) |
References hipcfg_allowed_peers_fn, hipcfg_allowed_peers_p, hipcfg_close_fn, hipcfg_close_p, hipcfg_getEndboxByLegacyNode_fn, hipcfg_getEndboxByLegacyNode_p, hipcfg_getLegacyNodesByEndbox_fn, hipcfg_getLegacyNodesByEndbox_p, hipcfg_getLlipByEndbox_fn, hipcfg_getLlipByEndbox_p, hipcfg_getLocalCertUrl_fn, hipcfg_getLocalCertUrl_p, hipcfg_getMyHostId_fn, hipcfg_getMyHostId_p, hipcfg_getPeerNodes_fn, hipcfg_getPeerNodes_p, hipcfg_init_fn, hipcfg_init_p, hipcfg_peers_allowed_fn, hipcfg_peers_allowed_p, hipcfg_postLocalCert_fn, hipcfg_postLocalCert_p, hipcfg_setUnderlayIpAddress_fn, hipcfg_setUnderlayIpAddress_p, hipcfg_verifyCert_fn, and hipcfg_verifyCert_p.
Referenced by main(), and main_loop().
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipcfg_peers_allowed_p, and hipCfg::peers_allowed().
Referenced by main(), and save_identities_file().
int hipcfg_postLocalCert | ( | const char * | hit | ) |
int hipcfg_setUnderlayIpAddress | ( | const char * | ip | ) |
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipcfg_setUnderlayIpAddress_p, and hipCfg::setUnderlayIpAddress().
Referenced by select_preferred_address().
int hipcfg_verifyCert | ( | const char * | url, |
const hip_hit | hit1 | ||
) |
References hipCfgMap::getInstance(), hipCfgFiles::getInstance(), hipcfg_verifyCert_p, and hipCfg::verifyCert().
Referenced by endbox_check_cert(), handle_cert(), hip_handle_I1(), and main().
int(* hipcfg_allowed_peers_p)(const hip_hit hit1, const hip_hit hit2) |
Referenced by hipcfg_allowed_peers(), and hipcfg_init().
int(* hipcfg_close_p)() |
Referenced by hipcfg_close(), and hipcfg_init().
int(* hipcfg_getEndboxByLegacyNode_p)(const struct sockaddr *host, struct sockaddr *eb) |
Referenced by hipcfg_getEndboxByLegacyNode(), and hipcfg_init().
int(* hipcfg_getLegacyNodesByEndbox_p)(const struct sockaddr *eb, struct sockaddr_storage *hosts, int size) |
Referenced by hipcfg_getLegacyNodesByEndbox(), and hipcfg_init().
int(* hipcfg_getLlipByEndbox_p)(const struct sockaddr *eb, struct sockaddr *llip) |
Referenced by hipcfg_getLlipByEndbox(), and hipcfg_init().
int(* hipcfg_getLocalCertUrl_p)(char *url, unsigned int size) |
Referenced by hipcfg_getLocalCertUrl(), and hipcfg_init().
hi_node*(* hipcfg_getMyHostId_p)() |
Referenced by hipcfg_getMyHostId(), and hipcfg_init().
int(* hipcfg_getPeerNodes_p)(struct peer_node *peerNodes, unsigned int max_count) |
Referenced by hipcfg_getPeerNodes(), and hipcfg_init().
int(* hipcfg_init_p)(struct hip_conf *hc) |
Referenced by hipcfg_init().
int(* hipcfg_peers_allowed_p)(hip_hit *hits1, hip_hit *hits2, int max_cnt) |
Referenced by hipcfg_init(), and hipcfg_peers_allowed().
int(* hipcfg_postLocalCert_p)(const char *hit) |
Referenced by hipcfg_init(), and hipcfg_postLocalCert().
int(* hipcfg_setUnderlayIpAddress_p)(const char *ip) |
Referenced by hipcfg_init(), and hipcfg_setUnderlayIpAddress().
int(* hipcfg_verifyCert_p)(const char *url, const hip_hit hit1) |
Referenced by hipcfg_init(), and hipcfg_verifyCert().