#include "config.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <features.h>
#include <asm/types.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <netinet/in.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dnet.h"
Go to the source code of this file.
Classes | |
struct | eth_handle |
Functions | |
eth_t * | eth_open (const char *device) |
ssize_t | eth_send (eth_t *e, const void *buf, size_t len) |
eth_t * | eth_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) |
|
Definition at line 81 of file eth-linux.c. References NULL. |
|
Definition at line 92 of file eth-linux.c. References addr_ston(), and memcpy. |
|
Definition at line 43 of file eth-linux.c. References eth_close(), ETH_P_ALL, NULL, and strlcpy. |
|
Definition at line 70 of file eth-linux.c. References eth_hdr::eth_type. |
|
Definition at line 107 of file eth-linux.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. |