Bug 210 - Packet::GetTxAvailable has an XXX comment about its return value
Packet::GetTxAvailable has an XXX comment about its return value
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-04 13:50 UTC by Mathieu Lacage
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lacage 2008-06-04 13:50:38 UTC
// XXX must limit it to interface MTU

If the socket is connected, we can return a better value. otherwise, we can't do better. What we can improve though, is the call to GetTxAvailable from PacketSocket::SendTo and move it to the inner send loop to check for the device MTU before sending the packet.
Comment 1 Mathieu Lacage 2008-06-04 13:59:22 UTC
changeset 49dcb3f0bd34