Sep 3, 2010

Set a variable value in MAC layer.

adding a variable in

in mac-802_11.h

class MAC_MIB {
private: u_int32_t ChannelThreshold;

public: inline u_int32_t getChannelThreshold() { return(ChannelThreshold);}

}

in mac-802_11.cc

00172 MAC_MIB::MAC_MIB(Mac802_11 *parent)
00173 {
00174 /*
00175 * Bind the phy mib objects. Note that these will be bound
00176 * to Mac/802_11 variables
00177 */
00178
00179 parent->bind("ChannelThreshold_", &ChannelThreshold);
00182 }
use the variable
thresh = macmib_.getChannelThreshold();


In the tcl file
Mac/802_11 set ChannelThreshold_ 1

No comments:

Post a Comment