[Ns-developers] Learning Bridge, NetDevice API changes
Gustavo Carneiro
gjcarneiro at gmail.com
Fri Jul 4 11:21:05 PDT 2008
I have finished the learning bridge. The code is available here:
http://code.nsnam.org/gjc/ns-3-learning-bridge/
Demo/test program is examples/csma-bridge.cc, which is based on
examples/csma-one-subnet.cc.
API changes that I tried are:
1. NetDevice::SetPromiscuousReceiveCallback
2. NetDevice::SendFrom
3. Node::AddPromiscuousProtocolHandler,
Node::RemovePromiscuousProtocolHandler
1 and 2 are only implemented for CsmaNetDevice, nothing else.
The last commit in the branch (changeset 3375) just adds backward API
compatibility, so that old code can continue to work.
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers
mailing list