[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: header size in ns



Yan,

Are you using Solaris?  We've had some problems with byte alignment
under Solaris.  See if you have the same problem with other OSs and
let us know.

Nader

>>> "Yan" == Yan Yu <[email protected]> writes:

Yan> Hello, all I am doing simulation using DSR in ns-2.  I am trying
Yan> to add some extra info in the source route header. so I also
Yan> modify th hdr_sr::size() to count the extra filed in sr_addr. BUt
Yan> the simulation behaves wierd after I made those change. If I only
Yan> change( add a field to) the sr_addr which is included in hdr_sr,
Yan> but did not change hdr_size(), which I think it is not right, but
Yan> the simulation seems working ok.  So I am wondering what change I
Yan> need to make when I add some field in packet header,
Yan> i.e. hdr_sr. Do I need to change hdr_sr::size()? Is it to count
Yan> the size of the route header?

Yan> Your any comments would be very helpful and appreciated.  Thanks
Yan> in advance!  yan