[Ns-bugs] [Bug 750] New: Small Ethernet do not get padded
code at nsnam.ece.gatech.edu
Wed Nov 25 02:09:26 PST 2009
Summary: Small Ethernet do not get padded
AssignedTo: ns-bugs at isi.edu
ReportedBy: Florian.Schmidt at cs.rwth-aachen.de
Estimated Hours: 0.0
Created an attachment (id=676)
patch to pad ethernet frames
When packets that are less than 46 bytes long reach CsmaNetDevice, it will add
header and trailer and send them out. However, these packets will be less than
the required minimum frame size of 64 bytes. This also influences the time that
the line is used by each packet.
Solution: add a check in CsmaNetDevice::AddHeader. Before adding the header and
trailer, check for the length of the packet and pad it if necessary. Small and
simple patch is attached.
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs