OpenHIP 0.9svn1
Defines | Functions | Variables
/home/tomh/svn/openhip/hip/trunk/src/usermode/hip_nl.c File Reference
#include <windows.h>
#include <w32api/iphlpapi.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <hip/hip_service.h>
#include <hip/hip_types.h>
#include <hip/hip_sadb.h>
#include <win32/netlink.h>

Defines

#define MIB_IPADDR_PRIMARY   0x0001
#define MIB_IPADDR_DYNAMIC   0x0004
#define MIB_IPADDR_DISCONNECTED   0x0008
#define MIB_IPADDR_DELETED   0x0040
#define MIB_IPADDR_TRANSIENT   0x0080

Functions

void readIpAddrTable (PMIB_IPADDRTABLE *pTable)
int checkIpAddrTableChanges (PMIB_IPADDRTABLE pNew, PMIB_IPADDRTABLE pOld)
int netlink_send_addr (int add_del, DWORD addr, DWORD ifindex)
int sendIpAddrTable (PMIB_IPADDRTABLE pTable)
void * hip_netlink (void *arg)

Variables

int netlsp [2] = { -1, -1 }
__u32 g_tap_lsi

Define Documentation

#define MIB_IPADDR_DELETED   0x0040

Referenced by checkIpAddrTableChanges().

#define MIB_IPADDR_DISCONNECTED   0x0008

Referenced by checkIpAddrTableChanges().

#define MIB_IPADDR_DYNAMIC   0x0004
#define MIB_IPADDR_PRIMARY   0x0001
#define MIB_IPADDR_TRANSIENT   0x0080

Function Documentation

int checkIpAddrTableChanges ( PMIB_IPADDRTABLE  pNew,
PMIB_IPADDRTABLE  pOld 
)
void* hip_netlink ( void *  arg)
int netlink_send_addr ( int  add_del,
DWORD  addr,
DWORD  ifindex 
)
void readIpAddrTable ( PMIB_IPADDRTABLE *  pTable)

Referenced by hip_netlink().

int sendIpAddrTable ( PMIB_IPADDRTABLE  pTable)

Variable Documentation

int netlsp[2] = { -1, -1 }