OpenHIP 0.9svn1
Defines | Functions | Variables
/home/tomh/svn/openhip/hip/trunk/src/include/hip/hip_cfg_api.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <net/ethernet.h>
#include <hip/hip_types.h>

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_nodehipcfg_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 Documentation

#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().


Function Documentation

int hipcfg_allowed_peers ( const hip_hit  hit1,
const hip_hit  hit2 
)
int hipcfg_close ( )
int hipcfg_getEndboxByLegacyNode ( const struct sockaddr *  host,
struct sockaddr *  eb 
)
int hipcfg_getLegacyNodesByEndbox ( const struct sockaddr *  eb,
struct sockaddr_storage *  hosts,
int  size 
)
int hipcfg_getLlipByEndbox ( const struct sockaddr *  eb,
struct sockaddr *  llip 
)
int hipcfg_getLocalCertUrl ( char *  url,
unsigned int  size 
)
hi_node* hipcfg_getMyHostId ( )
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 
)
int hipcfg_peers_allowed ( hip_hit hits1,
hip_hit hits2,
int  max_cnt 
)
int hipcfg_postLocalCert ( const char *  hit)
int hipcfg_setUnderlayIpAddress ( const char *  ip)
int hipcfg_verifyCert ( const char *  url,
const hip_hit  hit1 
)

Variable Documentation

int(* hipcfg_allowed_peers_p)(const hip_hit hit1, const hip_hit hit2)
int(* hipcfg_close_p)()

Referenced by hipcfg_close(), and hipcfg_init().

int(* hipcfg_getEndboxByLegacyNode_p)(const struct sockaddr *host, struct sockaddr *eb)
int(* hipcfg_getLegacyNodesByEndbox_p)(const struct sockaddr *eb, struct sockaddr_storage *hosts, int size)
int(* hipcfg_getLlipByEndbox_p)(const struct sockaddr *eb, struct sockaddr *llip)
int(* hipcfg_getLocalCertUrl_p)(char *url, unsigned int size)

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)
int(* hipcfg_postLocalCert_p)(const char *hit)
int(* hipcfg_setUnderlayIpAddress_p)(const char *ip)
int(* hipcfg_verifyCert_p)(const char *url, const hip_hit hit1)

Referenced by hipcfg_init(), and hipcfg_verifyCert().