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

eth-win32.c File Reference

#include "config.h"
#include <Packet32.h>
#include <Ntddndis.h>
#include <errno.h>
#include <stdlib.h>
#include "dnet.h"

Go to the source code of this file.

Classes

struct  eth_handle

Defines

#define sockaddr_storage   sockaddr

Functions

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


Define Documentation

#define sockaddr_storage   sockaddr
 

Definition at line 12 of file eth-win32.c.


Function Documentation

eth_t* eth_close eth_t eth  ) 
 

Definition at line 93 of file eth-win32.c.

References NULL, PacketCloseAdapter(), and PacketFreePacket().

Referenced by __pyx_f_4dnet_3eth___dealloc__(), _intf_get_noalias(), eth_open(), intf_set(), ip_close(), and send_main().

int eth_get eth_t eth,
eth_addr_t ea
 

Definition at line 106 of file eth-win32.c.

References _PACKET_OID_DATA::Data, ETH_ADDR_LEN, FALSE, _PACKET_OID_DATA::Length, memcpy, _PACKET_OID_DATA::Oid, OID_802_3_CURRENT_ADDRESS, PacketRequest(), and TRUE.

Referenced by __pyx_f_4dnet_3eth_get(), _intf_get_noalias(), and eth_open().

eth_t* eth_open const char *  device  ) 
 

Definition at line 28 of file eth-win32.c.

References ADDR_TYPE_ETH, ETH_ADDR_LEN, eth_close(), eth_get(), intf, intf_close(), intf_get(), intf_open(), memcmp(), memset, NULL, PacketAllocatePacket(), PacketCloseAdapter(), PacketGetAdapterNames(), PacketOpenAdapter(), PacketSetBuff(), and strlcpy.

Referenced by __pyx_f_4dnet_3eth___init__(), _intf_get_noalias(), _lookup_ip_intf(), intf_set(), and send_main().

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

Definition at line 85 of file eth-win32.c.

References PacketInitPacket(), PacketSendPacket(), and TRUE.

Referenced by __pyx_f_4dnet_3eth_send(), _request_arp(), ip_send(), and send_main().

int eth_set eth_t eth,
const eth_addr_t ea
 

Definition at line 123 of file eth-win32.c.

References _PACKET_OID_DATA::Data, ETH_ADDR_LEN, _PACKET_OID_DATA::Length, eth_handle::lpa, memcpy, _PACKET_OID_DATA::Oid, OID_802_3_CURRENT_ADDRESS, PacketRequest(), and TRUE.

Referenced by __pyx_f_4dnet_3eth_set(), and intf_set().


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