[Ns-bugs] [Bug 491] It is painful to enable all checksums
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Mon Apr 27 22:26:24 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=491
--- Comment #9 from Craig Dowell <craigdo at ee.washington.edu> 2009-04-28 01:26:24 EDT ---
Forgot to hg add the two new (very small) files.
You now have a singleton object with global configuration information. From
examples/emu-ping.cc turning on checksums is a one-liner:
System ()->SetAttribute ("CalcChecksum", BooleanValue (true));
The protocols do something like,
BooleanValue b;
System ()->GetAttribute ("CalcChecksum", b);
if(m_calcChecksum || b.Get ())
{
...
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list