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

arp-ioctl.c File Reference

#include "config.h"
#include <sys/param.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_arp.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.

Classes

struct  arp_handle

Functions

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


Function Documentation

int arp_add arp_t a,
const struct arp_entry entry
 

Definition at line 101 of file arp-ioctl.c.

References addr_ntos(), arp_entry::arp_ha, ARP_HRD_ETH, arp_entry::arp_pa, errno, ETH_ADDR_LEN, arp_handle::fd, intf_loop(), IP_ADDR_BROADCAST, memcpy, memset, and NULL.

arp_t* arp_close arp_t a  ) 
 

Definition at line 477 of file arp-ioctl.c.

References arp_handle::fd, intf_close(), and NULL.

int arp_delete arp_t a,
const struct arp_entry entry
 

Definition at line 166 of file arp-ioctl.c.

References addr_ntos(), arp_entry::arp_pa, arp_handle::fd, and memset.

int arp_get arp_t a,
struct arp_entry entry
 

Definition at line 182 of file arp-ioctl.c.

References addr_ntos(), addr_ston(), arp_entry::arp_ha, arp_entry::arp_pa, errno, arp_handle::fd, intf_loop(), and memset.

int arp_loop arp_t a,
arp_handler  callback,
void *  arg
 

Definition at line 469 of file arp-ioctl.c.

References errno.

arp_t* arp_open void   ) 
 

Definition at line 55 of file arp-ioctl.c.

References arp_close(), intf_open(), and NULL.


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