[Ns-bugs] [Bug 1378] New: UdpEchoClient::SetFill (uint8_t *fill, ...) do not set packet size attribute correctly
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Tue Feb 28 21:32:19 PST 2012
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1378
Summary: UdpEchoClient::SetFill (uint8_t *fill, ...) do not set
packet size attribute correctly
Product: ns-3
Version: ns-3.13
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: applications
AssignedTo: riley at ece.gatech.edu
ReportedBy: jesse1013000 at gmail.com
CC: ns-bugs at isi.edu
Estimated Hours: 0.0
Created attachment 1343
--> https://www.nsnam.org/bugzilla/attachment.cgi?id=1343
UdpEchoClient::SetFill (uint8_t *fill, ...) patch
Function UdpEchoClient::SetFill (uint8_t *fill, uint32_t fillSize, uint32_t
dataSize) do not set packet size attribute correctly. When "fillSize >=
dataSize", m_size is not set.
A solution is to add statement "m_size = dataSize " before statement "return"
in "if (fillSize >= dataSize) { ...}" statement block.
if (fillSize >= dataSize)
{
memcpy (m_data, fill, dataSize);
m_size = dataSize; // Add this statement
return;
}
--
Configure bugmail: https://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