Bug 2039 - LinuxSocketImpl::RecvFrom uses fixed size buf and ignores maxSize
LinuxSocketImpl::RecvFrom uses fixed size buf and ignores maxSize
Status: REOPENED
Product: dce
Classification: Unclassified
Component: other
unspecified
PC Linux
: P5 trivial
Assigned To: Hajime Tazaki
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-15 22:15 EST by Manuel Rüger
Modified: 2015-01-16 10:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger 2015-01-15 22:15:49 EST
In model/linux/linux-socket-impl.cc

Ptr<Packet>
LinuxSocketImpl::RecvFrom (uint32_t maxSize, uint32_t flags,
                           Address &fromAddress)
{
NS_LOG_FUNCTION (this << maxSize << flags);
uint8_t buf[4096];
Comment 1 Hajime Tazaki 2015-01-16 01:15:07 EST
thanks for the report. fixed in fa2f8ac31f8c.
Comment 2 Hajime Tazaki 2015-01-16 10:48:08 EST
reverted the changes due to an error in short memory. will be back.