[Ns-developers] ns-3, EthernetHeader endianness issue.
Guillaume Vu-Brugier
gvubrugier at gmail.com
Fri Mar 7 02:23:44 PST 2008
I noticed that the EthernetHeader::Serialize() method was storing the
'lengthType' field using the host byte order.
As a result, Wireshark was unable to properly decode pcap traces, for
example if you take "tutorial-linear-dumbell" as a base and modify ns-3 to
create pcap traces containing all ethernet headers (I had to modify
pcap-trace and csma-net-device to do that... is there an easier way ?)
The attached patch fixes this small issue.
--
Guillaume
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lengthtype_endianness.diff
Type: application/octet-stream
Size: 556 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20080307/16fe6742/lengthtype_endianness.obj
More information about the Ns-developers
mailing list