Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ether.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  ether_addr
struct  ether_header
class  Ethernet

Defines

#define ETHER_ADDR_LEN   6
#define ETHER_TYPE_LEN   2
#define ETHER_CRC_LEN   4
#define ETHER_HDR_LEN   (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN)
#define ETHER_MIN_LEN   64
#define ETHER_MAX_LEN   1518
#define ETHER_IS_VALID_LEN(foo)   ((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN)


Define Documentation

#define ETHER_ADDR_LEN   6
 

Definition at line 5 of file ether.h.

Referenced by ArpAgent::ArpAgent(), ARPTable::arprequest(), ArpAgent::command(), ArpAgent::doreply(), ArpAgent::doreq(), PcapLiveNetwork::open(), and ArpAgent::sendresp().

#define ETHER_CRC_LEN   4
 

Definition at line 12 of file ether.h.

#define ETHER_HDR_LEN   (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN)
 

Definition at line 15 of file ether.h.

Referenced by Mac802_3::collision(), Mac802_3::recv_complete(), MacTdma::recvDATA(), MacTdma::sendDown(), Mac802_3::sendDown(), and PcapLiveNetwork::skiphdr().

#define ETHER_IS_VALID_LEN foo   )     ((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN)
 

Definition at line 26 of file ether.h.

#define ETHER_MAX_LEN   1518
 

Definition at line 23 of file ether.h.

#define ETHER_MIN_LEN   64
 

Definition at line 19 of file ether.h.

#define ETHER_TYPE_LEN   2
 

Definition at line 9 of file ether.h.


Generated on Tue Apr 20 12:20:03 2004 for NS2.26SourcesOriginal by doxygen 1.3.3