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

arp.c File Reference

#include "config.h"
#include <sys/types.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "dnet.h"
#include "aton.h"
#include "mod.h"

Go to the source code of this file.

Functions

void arp_usage (void)
static int print_arp (const struct arp_entry *entry, void *arg)
static int arp_kern_main (int argc, char *argv[])
int arp_main (int argc, char *argv[])

Variables

mod mod_arp


Function Documentation

static int arp_kern_main int  argc,
char *  argv[]
[static]
 

Definition at line 44 of file arp.c.

References addr_ntoa(), addr_pton(), arp_add(), arp_close(), arp_delete(), arp_get(), arp_entry::arp_ha, arp_loop(), arp_open(), arp_entry::arp_pa, arp_usage(), err(), NULL, and print_arp().

Referenced by arp_main().

int arp_main int  argc,
char *  argv[]
 

Definition at line 89 of file arp.c.

References addr_aton, arp_hdr::ar_hln, arp_hdr::ar_hrd, arp_hdr::ar_op, arp_hdr::ar_pln, arp_hdr::ar_pro, ARP_ETHIP_LEN, ARP_HDR_LEN, ARP_HRD_ETH, arp_kern_main(), ARP_OP_REQUEST, ARP_PRO_IP, arp_usage(), err(), ETH_ADDR_LEN, ETH_MTU, IP_ADDR_LEN, memcpy, memset, NULL, and op_aton().

void arp_usage void   ) 
 

Definition at line 25 of file arp.c.

Referenced by arp_kern_main(), and arp_main().

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

Definition at line 36 of file arp.c.

References addr_ntoa(), arp_entry::arp_ha, and arp_entry::arp_pa.

Referenced by arp_kern_main().


Variable Documentation

struct mod mod_arp
 

Initial value:

Definition at line 169 of file arp.c.


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