[Ns-developers] ns-3, EthernetHeader endianness issue.
Gustavo Carneiro
gjcarneiro at gmail.com
Fri Mar 7 14:33:44 PST 2008
On 07/03/2008, Mathieu Lacage <mathieu.lacage at sophia.inria.fr> wrote:
>
> 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
Maybe it makes more sense to just remove the WriteU16 buffer iterator
method, to avoid this problem in the future?
> 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
>
>
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers
mailing list