Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

arp-win32.c File Reference

#include "config.h"
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  arp_handle

Functions

arp_tarp_open (void)
int arp_add (arp_t *arp, const struct arp_entry *entry)
int arp_delete (arp_t *arp, const struct arp_entry *entry)
static int _arp_get_entry (const struct arp_entry *entry, void *arg)
int arp_get (arp_t *arp, struct arp_entry *entry)
int arp_loop (arp_t *arp, arp_handler callback, void *arg)
arp_tarp_close (arp_t *arp)


Function Documentation

static int _arp_get_entry const struct arp_entry entry,
void *  arg
[static]
 

Definition at line 74 of file arp-win32.c.

References addr_cmp(), arp_entry::arp_ha, arp_entry::arp_pa, and memcpy.

Referenced by arp_get().

int arp_add arp_t arp,
const struct arp_entry entry
 

Definition at line 31 of file arp-win32.c.

References arp_entry::arp_ha, arp_entry::arp_pa, CreateIpNetEntry(), ETH_ADDR_LEN, GetBestRoute(), IP_ADDR_ANY, and memcpy.

Referenced by __pyx_f_4dnet_3arp_add(), and arp_kern_main().

arp_t* arp_close arp_t arp  ) 
 

Definition at line 133 of file arp-win32.c.

References NULL.

Referenced by __pyx_f_4dnet_3arp___dealloc__(), arp_kern_main(), arp_open(), ip_close(), and START_TEST().

int arp_delete arp_t arp,
const struct arp_entry entry
 

Definition at line 53 of file arp-win32.c.

References arp_entry::arp_pa, DeleteIpNetEntry(), errno, GetBestRoute(), IP_ADDR_ANY, and memset.

Referenced by __pyx_f_4dnet_3arp_delete(), and arp_kern_main().

int arp_get arp_t arp,
struct arp_entry entry
 

Definition at line 86 of file arp-win32.c.

References _arp_get_entry(), arp_loop(), and errno.

Referenced by __pyx_f_4dnet_3arp_get(), arp_kern_main(), and ip_send().

int arp_loop arp_t arp,
arp_handler  callback,
void *  arg
 

Definition at line 97 of file arp-win32.c.

References addr::addr_bits, addr::addr_type, ADDR_TYPE_ETH, ADDR_TYPE_IP, arp_entry::arp_ha, arp_entry::arp_pa, ETH_ADDR_BITS, ETH_ADDR_LEN, FALSE, GetIpNetTable(), IP_ADDR_BITS, arp_handle::iptable, and memcpy.

Referenced by __pyx_f_4dnet_3arp_loop(), arp_get(), and arp_kern_main().

arp_t* arp_open void   ) 
 

Definition at line 25 of file arp-win32.c.

Referenced by __pyx_f_4dnet_3arp___init__(), arp_kern_main(), ip_open(), and START_TEST().


Generated on Sun May 14 14:51:21 2006 by  doxygen 1.4.2