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

eth-dlpi.c File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/stream.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <unistd.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  eth_handle

Defines

#define INFTIM   -1

Functions

static int dlpi_msg (int fd, union DL_primitives *dlp, int rlen, int flags, int ack, int alen, int size)
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)


Define Documentation

#define INFTIM   -1
 

Definition at line 39 of file eth-dlpi.c.


Function Documentation

static int dlpi_msg int  fd,
union DL_primitives *  dlp,
int  rlen,
int  flags,
int  ack,
int  alen,
int  size
[static]
 

Definition at line 48 of file eth-dlpi.c.

References caddr_t, and NULL.

Referenced by eth_get(), eth_open(), and eth_set().

eth_t* eth_close eth_t e  ) 
 

Definition at line 243 of file eth-dlpi.c.

References NULL.

int eth_get eth_t e,
eth_addr_t ea
 

Definition at line 254 of file eth-dlpi.c.

References dlpi_msg(), and memcpy.

eth_t* eth_open const char *  device  ) 
 

Definition at line 119 of file eth-dlpi.c.

References dlpi_msg(), errno, eth_close(), memset, NULL, snprintf, and strpbrk().

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

Definition at line 191 of file eth-dlpi.c.

References eth_addr::data, ETH_ADDR_LEN, eth_hdr::eth_dst, eth_hdr::eth_type, and memcpy.

int eth_set eth_t e,
const eth_addr_t ea
 

Definition at line 273 of file eth-dlpi.c.

References dlpi_msg(), ETH_ADDR_LEN, eth_handle::fd, and memcpy.


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