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

arp-bsd.c File Reference

#include "config.h"
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dnet.h"

Go to the source code of this file.

Functions

arp_tarp_open (void)
static int arp_msg (arp_t *arp, struct arpmsg *msg)
int arp_add (arp_t *arp, const struct arp_entry *entry)
int arp_delete (arp_t *arp, const struct arp_entry *entry)
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

int arp_add arp_t arp,
const struct arp_entry entry
 

Definition at line 110 of file arp-bsd.c.

References addr_ntos(), addr::addr_type, ADDR_TYPE_ETH, ADDR_TYPE_IP, arpmsg::addrs, arp_entry::arp_ha, arp_msg(), arp_entry::arp_pa, errno, index, memset, and arpmsg::rtm.

arp_t* arp_close arp_t arp  ) 
 

Definition at line 315 of file arp-bsd.c.

References arp_handle::fd, and NULL.

int arp_delete arp_t arp,
const struct arp_entry entry
 

Definition at line 176 of file arp-bsd.c.

References addr_ntos(), addr::addr_type, ADDR_TYPE_IP, arpmsg::addrs, arp_msg(), arp_entry::arp_pa, errno, memset, and arpmsg::rtm.

int arp_get arp_t arp,
struct arp_entry entry
 

Definition at line 222 of file arp-bsd.c.

References addr_ntos(), addr_ston(), addr::addr_type, ADDR_TYPE_IP, arpmsg::addrs, arp_entry::arp_ha, arp_msg(), arp_entry::arp_pa, errno, memset, and arpmsg::rtm.

int arp_loop arp_t arp,
arp_handler  callback,
void *  arg
 

Definition at line 307 of file arp-bsd.c.

References errno.

static int arp_msg arp_t arp,
struct arpmsg msg
[static]
 

Definition at line 65 of file arp-bsd.c.

References errno, memcpy, and arpmsg::rtm.

Referenced by arp_add(), arp_delete(), and arp_get().

arp_t* arp_open void   ) 
 

Definition at line 49 of file arp-bsd.c.

References arp_close(), and NULL.


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