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

Re: [ns] packet size and data length?



no, datalen() return the length of payload, see packet.h:
   class Packet :
      inline int datalen() const { return data_ ? data_->size() : 0; }

packetSize_ set the value of:
   struct hdr_cmn {
      int     size_;          // simulated packet size

On Mon, 19 Nov 2001, bindumadhavi ramavarjula wrote:

> hullo,
> when i say
> Agent/Foo set packetsize_ 64 in ns-default.tcl
> what does it mean?ami setting the data length of the
> packet to 64 bytes?so at the destination node if i use
>
> p->datalen() function will I get 64 bytes?
> If not what exactly is packetsize_ signifying here?
> -bindu
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>