Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

ethernet_frame Struct Reference


Detailed Description

This structure holds information about the Ethernet packets. In addition to standard Ethernet header (destination HW address, source HW address, frame size and protocol), buff_index is added. This variable is used by higher level protocols (IP, ARP or other) to initialize reading of the Ethernet packet by invoking NETWORK_RECEIVE_INITIALIZE macro to initialize reading of the data carried in the Ethernet packet ( not the Ethernet header itself!).

Definition at line 142 of file ethernet.h.

Data Fields

UINT8 destination [ETH_ADDRESS_LEN]
UINT8 source [ETH_ADDRESS_LEN]
UINT16 frame_size
UINT16 protocol
UINT16 buf_index


Field Documentation

UINT8 ethernet_frame::destination[ETH_ADDRESS_LEN]
 

destination hardware address as read from the received ethernet packet

Definition at line 144 of file ethernet.h.

Referenced by NE2000ReceiveFrame(), NE2000WriteEthernetHeader(), and process_ip_in().

UINT8 ethernet_frame::source[ETH_ADDRESS_LEN]
 

source hardware address as read from the received ethernet packet

Definition at line 148 of file ethernet.h.

Referenced by NE2000ReceiveFrame(), NE2000WriteEthernetHeader(), and process_ip_in().

UINT16 ethernet_frame::frame_size
 

size of the received Ethernet packet

Definition at line 152 of file ethernet.h.

Referenced by NE2000ReceiveFrame(), process_arp(), and process_ip_in().

UINT16 ethernet_frame::protocol
 

protocol field of the Ethernet header. For now we work with:

  • PROTOCOL_IP - 0x0800
  • PROTOCOL_ARP - 0x0806

Definition at line 155 of file ethernet.h.

Referenced by NE2000ReceiveFrame(), NE2000WriteEthernetHeader(), process_arp(), and process_ip_in().

UINT16 ethernet_frame::buf_index
 

Address in the Ethernet controllers buffer where data can be read from

Definition at line 161 of file ethernet.h.

Referenced by NE2000ReceiveFrame(), process_arp(), and process_ip_in().


The documentation for this struct was generated from the following file:
Generated on Sun Aug 3 20:33:01 2003 for OpenTCP by doxygen1.2.18