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

hdr_mac Struct Reference

#include <mac.h>

Collaboration diagram for hdr_mac:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void set (MacFrameType ft, int sa, int da=-1)
MacFrameTypeftype ()
int & macSA ()
int & macDA ()
u_int16_thdr_type ()
double & txtime ()
double & sstime ()

Static Public Member Functions

int & offset ()
hdr_macaccess (const Packet *p)

Public Attributes

MacFrameType ftype_
int macSA_
int macDA_
u_int16_t hdr_type_
double txtime_
double sstime_
int padding_

Static Public Attributes

int offset_

Member Function Documentation

hdr_mac* hdr_mac::access const Packet p  )  [inline, static]
 

Definition at line 131 of file mac.h.

References Packet::access(), and offset_.

Referenced by MacCsma::endofContention(), MultihopMac::recv(), and MultihopMac::send().

00131                                                        {
00132                 return (hdr_mac*) p->access(offset_);
00133         }

Here is the call graph for this function:

MacFrameType& hdr_mac::ftype  )  [inline]
 

Definition at line 120 of file mac.h.

References ftype_, and MacFrameType.

Referenced by TraceIpMac::recv(), and MultihopMac::recv().

00120 { return ftype_; }

u_int16_t& hdr_mac::hdr_type  )  [inline]
 

Definition at line 123 of file mac.h.

References hdr_type_, and u_int16_t.

00123 {return hdr_type_; }

int& hdr_mac::macDA  )  [inline]
 

Definition at line 122 of file mac.h.

References macDA_.

Referenced by MacClassifier::recv(), and Mac802_3::recv_complete().

00122 { return macDA_; }

int& hdr_mac::macSA  )  [inline]
 

Definition at line 121 of file mac.h.

References macSA_.

Referenced by MultihopMac::recv(), and MacClassifier::recv().

00121 { return macSA_; }

int& hdr_mac::offset  )  [inline, static]
 

Definition at line 130 of file mac.h.

References offset_.

00130 { return offset_; }

void hdr_mac::set MacFrameType  ft,
int  sa,
int  da = -1
[inline]
 

Definition at line 115 of file mac.h.

References ftype_, macDA_, and macSA_.

Referenced by Mac::recv().

00115                                                             {
00116                 ftype_ = ft;
00117                 macSA_ = sa;
00118                 if (da != -1)  macDA_ = da;
00119         }

double& hdr_mac::sstime  )  [inline]
 

Definition at line 126 of file mac.h.

References sstime_.

00126 { return sstime_; }

double& hdr_mac::txtime  )  [inline]
 

Definition at line 125 of file mac.h.

References txtime_.

Referenced by MacCsma::endofContention(), MultihopMac::send(), UnslottedAlohaMac::sendUp(), and SatMac::sendUp().

00125 { return txtime_; }


Member Data Documentation

MacFrameType hdr_mac::ftype_
 

Definition at line 105 of file mac.h.

Referenced by ftype(), and set().

u_int16_t hdr_mac::hdr_type_
 

Definition at line 108 of file mac.h.

Referenced by hdr_type().

int hdr_mac::macDA_
 

Definition at line 107 of file mac.h.

Referenced by macDA(), and set().

int hdr_mac::macSA_
 

Definition at line 106 of file mac.h.

Referenced by macSA(), and set().

int hdr_mac::offset_ [static]
 

Definition at line 48 of file mac.cc.

Referenced by access(), SMAC::drop_CTS(), SMAC::drop_RTS(), SMAC::handleACK(), SMAC::handleCounterTimer(), SMAC::handleCTS(), SMAC::handleRTS(), SMAC::handleSYNC(), MacHeaderClass::MacHeaderClass(), offset(), Mac802_11::recvRTS(), Mac802_11::RetransmitRTS(), SMAC::sendACK(), Mac802_11::sendACK(), SMAC::sendCTS(), Mac802_11::sendCTS(), SatLL::sendDown(), LL::sendDown(), SMAC::sendRTS(), Mac802_11::sendRTS(), SMAC::sendSYNC(), Mac::sendUp(), SMAC::sentACK(), SMAC::sentCTS(), SMAC::setMySched(), and SMAC::unicastMsg().

int hdr_mac::padding_
 

Definition at line 113 of file mac.h.

Referenced by Mac802_3::recv_complete(), and Mac802_3::sendDown().

double hdr_mac::sstime_
 

Definition at line 111 of file mac.h.

Referenced by sstime().

double hdr_mac::txtime_
 

Definition at line 110 of file mac.h.

Referenced by txtime().


The documentation for this struct was generated from the following files:
Generated on Tue Apr 20 12:50:35 2004 for NS2.26SourcesOriginal by doxygen 1.3.3