Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divide by zero:ConsumerCbr's Frequency maybe set zero,and cause bug!!! #114

Open
fgfxf opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@fgfxf
Copy link

fgfxf commented Nov 4, 2022

the consumer 's interest packet's frequency is a double varble,and can be set to zero.

ndnSIM/apps/ndn-consumer-cbr.cpp

col 93:
m_sendEvent = Simulator::Schedule((m_random == 0) ? Seconds(1.0 / m_frequency)
: Seconds(m_random->GetValue()),
&Consumer::SendPacket, this);

SetAttribute("Frequency", ns3::StringValue("0"));

i want to set Frequency small to make frequency little.

SetAttribute("Frequency", ns3::StringValue("0.1")); // 10 second a interests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant