dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

arp.c File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/sockio.h>
#include <net/if.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "arp.h"
Include dependency graph for arp.c:

Go to the source code of this file.

Macros

#define ETHER_ADDR_LEN   6
 

Functions

int arp_cache_lookup (u_int32_t ip, struct ether_addr *ether)
 

Macro Definition Documentation

◆ ETHER_ADDR_LEN

#define ETHER_ADDR_LEN   6

Definition at line 90 of file arp.c.

Function Documentation

◆ arp_cache_lookup()

int arp_cache_lookup ( u_int32_t  ip,
struct ether_addr *  ether 
)

Definition at line 94 of file arp.c.

References ETHER_ADDR_LEN, and if().

Referenced by arp_find().