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

eth-snoop.c File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/raw.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  eth_handle

Functions

eth_teth_open (const char *device)
int eth_get (eth_t *e, eth_addr_t *ea)
int eth_set (eth_t *e, const eth_addr_t *ea)
ssize_t eth_send (eth_t *e, const void *buf, size_t len)
eth_teth_close (eth_t *e)


Function Documentation

eth_t* eth_close eth_t e  ) 
 

Definition at line 101 of file eth-snoop.c.

References NULL.

int eth_get eth_t e,
eth_addr_t ea
 

Definition at line 60 of file eth-snoop.c.

References addr_ston(), addr::addr_type, ADDR_TYPE_ETH, errno, and memcpy.

eth_t* eth_open const char *  device  ) 
 

Definition at line 31 of file eth-snoop.c.

References eth_close(), memset, NULL, and strlcpy.

ssize_t eth_send eth_t e,
const void *  buf,
size_t  len
 

Definition at line 95 of file eth-snoop.c.

References eth_handle::fd.

int eth_set eth_t e,
const eth_addr_t ea
 

Definition at line 80 of file eth-snoop.c.

References addr::addr_bits, addr_ntos(), addr::addr_type, ADDR_TYPE_ETH, ETH_ADDR_BITS, ETH_ADDR_LEN, eth_handle::fd, eth_handle::ifr, and memcpy.


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