class <Mac/Csma/Cd> MacCsmaCd : public MacCsma


Inheritance:


Public Methods

void endofContention(Packet*)

Inherited from MacCsma:

Public Methods

virtual void resume(Packet* p = 0)
virtual void send(Packet* p)

Protected Fields

int csense_
int cw_
int cwmax_
int cwmin_
Event eEoc_
MacHandlerEoc hEoc_
double ifs_
int rtx_
int rtxLimit_
double slotTime_
double txstart_

Protected Methods

virtual void backoff(Handler* h, Packet* p, double delay=0)

Inherited from Mac:

Public Fields

Mac instvar mclass_

Public Methods

inline int addr()
inline double bandwidth()
Mac instproc classify-macs {peerinfo}
virtual inline int hdr_dst(char* hdr, int dst = -2)
virtual inline int hdr_src(char* hdr, int src = -2)
virtual inline int hdr_type(char *hdr, u_int16_t type = 0)
virtual void installTap(Tap *t)
virtual void recv(Packet* p, Handler* h)
virtual void sendDown(Packet* p)
virtual void sendUp(Packet *p)
inline MacState state()
inline MacState state(int m)
inline double txtime(Packet* p)
inline double txtime(int bytes)

Protected Fields

double bandwidth_
Handler* callback_
Channel* channel_
double delay_
MacHandlerResume hRes_
MacHandlerSend hSend_
int index_
Event intr_
LL* ll_
Phy* netif_
int off_mac_
Packet* pktRx_
Packet* pktTx_
MacState state_
Tap* tap_

Protected Methods

int command(int argc, const char*const* argv)
virtual int initialized()

Private Fields

NsObject* logtarget_

Private Methods

void mac_log(Packet *p)

Inherited from BiConnector:

Public Methods

NsObject* downtarget()
virtual void drop(Packet* p)
inline NsObject* uptarget()

Protected Fields

NsObject* downtarget_
NsObject* drop_
NsObject* uptarget_

Protected Methods

virtual void drop(Packet* p, const char *s)

Inherited from NsObject:

Public Methods

virtual void debug(const char *fmt, ...)
virtual int delay_bind_dispatch(const char *varName, const char *localName, TclObject *tracer)
virtual void delay_bind_init_all()
int isdebug()

Protected Fields

int debug_
int off_cmn_
int off_flags_

Protected Methods

void handle(Event*)
virtual void reset()

Inherited from Handler:


Documentation

void endofContention(Packet*)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de