/home/tomh/openhip/hip-0.5/src/include/hip/hip_usermode.h File Reference

#include <sys/socket.h>

Go to the source code of this file.

Defines

#define RETNULL   NULL;
#define DNS_PORT   53
#define HIP_DNS_SUFFIX   ".hip"
#define SA2IP(x)
#define SALEN(x)
#define SAIPLEN(x)   (((struct sockaddr*)x)->sa_family==AF_INET) ? 4 : 16
#define IS_LSI32(a)   ((a & 0xFF) == 0x01)
#define NIPQUAD(addr)
#define NIP6(addr)
#define TRUE   1
#define FALSE   0

Functions

void * hip_esp_output (void *arg)
void * hip_esp_input (void *arg)
void * hip_pfkey (void *arg)
void * tunreader (void *arg)
void * hip_dns (void *arg)
void * hipd_main (void *arg)
void * hip_netlink (void *arg)
void * hip_status (void *arg)
int init_esp_input (int family, int proto)
int main_loop (int argc, char **argv)
int str_to_addr (unsigned char *data, struct sockaddr *addr)
int pfkey_send_acquire (struct sockaddr *target)

Variables

__u64 g_tap_mac
int g_state


Define Documentation

#define DNS_PORT   53

#define FALSE   0

#define HIP_DNS_SUFFIX   ".hip"

#define IS_LSI32 (  )     ((a & 0xFF) == 0x01)

#define NIP6 ( addr   ) 

Value:

ntohs((addr).s6_addr16[0]), \
        ntohs((addr).s6_addr16[1]), \
        ntohs((addr).s6_addr16[2]), \
        ntohs((addr).s6_addr16[3]), \
        ntohs((addr).s6_addr16[4]), \
        ntohs((addr).s6_addr16[5]), \
        ntohs((addr).s6_addr16[6]), \
        ntohs((addr).s6_addr16[7])

#define NIPQUAD ( addr   ) 

Value:

((unsigned char *)&addr)[0], \
        ((unsigned char *)&addr)[1], \
        ((unsigned char *)&addr)[2], \
        ((unsigned char *)&addr)[3]

#define RETNULL   NULL;

#define SA2IP (  ) 

Value:

(((struct sockaddr*)x)->sa_family==AF_INET) ? \
        (void*)&((struct sockaddr_in*)x)->sin_addr : \
        (void*)&((struct sockaddr_in6*)x)->sin6_addr

#define SAIPLEN (  )     (((struct sockaddr*)x)->sa_family==AF_INET) ? 4 : 16

#define SALEN (  ) 

Value:

(((struct sockaddr*)x)->sa_family==AF_INET) ? \
        sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6)

#define TRUE   1


Function Documentation

void* hip_dns ( void *  arg  ) 

void* hip_esp_input ( void *  arg  ) 

void* hip_esp_output ( void *  arg  ) 

void* hip_netlink ( void *  arg  ) 

void* hip_pfkey ( void *  arg  ) 

void* hip_status ( void *  arg  ) 

void* hipd_main ( void *  arg  ) 

int init_esp_input ( int  family,
int  proto 
)

int main_loop ( int  argc,
char **  argv 
)

int pfkey_send_acquire ( struct sockaddr *  target  ) 

int str_to_addr ( unsigned char *  data,
struct sockaddr *  addr 
)

void* tunreader ( void *  arg  ) 


Variable Documentation

int g_state

__u64 g_tap_mac


Generated on Mon Oct 22 11:43:43 2007 for OpenHIP by  doxygen 1.5.1