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

eth-bsd.c File Reference

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

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


Function Documentation

eth_t* eth_close eth_t e  ) 
 

Definition at line 79 of file eth-bsd.c.

References NULL.

int eth_get eth_t e,
eth_addr_t ea
 

Definition at line 137 of file eth-bsd.c.

References errno.

eth_t* eth_open const char *  device  ) 
 

Definition at line 40 of file eth-bsd.c.

References BIOCSETIF, errno, eth_close(), memset, NULL, snprintf, and strlcpy.

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

Definition at line 73 of file eth-bsd.c.

int eth_set eth_t e,
const eth_addr_t ea
 

Definition at line 163 of file eth-bsd.c.

References errno.


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