class <Mac> Mac : public BiConnector


Inheritance:


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)
mac methods to set dst, src and hdt_type in pkt hdrs. note: -1 is the broadcast mac addr.
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)
Mac()
virtual void recv(Packet* p, Handler* h)
virtual void resume(Packet* p = 0)
virtual void sendDown(Packet* p)
virtual void sendUp(Packet *p)
inline MacState state(int m)
inline Mac*& macList() { return macList_; }
inline MacState state()
inline double txtime(int bytes)
inline double txtime(Packet* p)

Protected Fields

double bandwidth_
channel bitrate
Handler* callback_
callback for end-of-transmission
Channel* channel_
channel this MAC is connected to
double delay_
MAC overhead
MacHandlerResume hRes_
resume handler
MacHandlerSend hSend_
handle delay send due to busy channel
int index_
MAC address
Event intr_
LL* ll_
LL this MAC is connected to
Phy* netif_
network interface
int off_mac_
Packet* pktRx_
Packet* pktTx_
MacState state_
============================================================ Internal MAC State ============================================================ MAC's current state
Tap* tap_
tap agent

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

Mac()

virtual void recv(Packet* p, Handler* h)

virtual void sendDown(Packet* p)

virtual void sendUp(Packet *p)

virtual void resume(Packet* p = 0)

virtual void installTap(Tap *t)

inline double txtime(int bytes)

inline double txtime(Packet* p)

inline double bandwidth()

inline int addr()

inline MacState state()

inline MacState state(int m)
inline Mac*& macList() { return macList_; }

virtual inline int hdr_dst(char* hdr, int dst = -2)
mac methods to set dst, src and hdt_type in pkt hdrs. note: -1 is the broadcast mac addr.

virtual inline int hdr_src(char* hdr, int src = -2)

virtual inline int hdr_type(char *hdr, u_int16_t type = 0)

void mac_log(Packet *p)

NsObject* logtarget_

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

virtual int initialized()

int index_
MAC address

double bandwidth_
channel bitrate

double delay_
MAC overhead

int off_mac_

Phy* netif_
network interface

Tap* tap_
tap agent

LL* ll_
LL this MAC is connected to

Channel* channel_
channel this MAC is connected to

Handler* callback_
callback for end-of-transmission

MacHandlerResume hRes_
resume handler

MacHandlerSend hSend_
handle delay send due to busy channel

Event intr_

MacState state_
============================================================ Internal MAC State ============================================================ MAC's current state

Packet* pktRx_

Packet* pktTx_

Mac instproc classify-macs {peerinfo}
The MAC classifier (to demux incoming packets to the correct LL object)

Mac instvar mclass_


Direct child classes:
SatMac
MultihopMac
MacCsma
Mac802_3
Mac802_11

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