[Ns-developers] ns-3, EthernetHeader endianness issue.
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Fri Mar 7 11:45:32 PST 2008
hi guillaume,
On Fri, 2008-03-07 at 11:23 +0100, Guillaume Vu-Brugier wrote:
> I noticed that the EthernetHeader::Serialize() method was storing the
> 'lengthType' field using the host byte order.
I pushed your patch:
http://code.nsnam.org/ns-3-dev/rev/ff54bd92e43c
> 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 ?)
It would be easier to answer your question if you could send a patch
which contains your changes.
>
> The attached patch fixes this small issue.
thanks,
Mathieu
More information about the Ns-developers
mailing list