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

Re: [ns] Packet Header



Assuming you've declared and instantiated all of those packets as
described in the manual, then just use the access method to get the
corresponding header of a packet, e.g., hdr_rtp::access(pkt). Is this what
you want?

- Haobo

On Thu, 6 Apr 2000, Rudhrakumar Venkatesan wrote:

> Thanks a lot for your immediate response.
> I have read the chapter 11, but I am quite sure about how the headers are
> attached to the packets.
> I have 8 header formats as I said earlier. and I need them to be
> differentially used according to the type of packet. Can U please throw
> some light on this.
> regards
> Rudhra
> 
> Haobo Yu wrote:
> 
> > Please read chapter 11 of ns manual on adding new packet headers. You may
> > not want to selectively turn on packet headers in different simulations;
> > that could be tricky. Instead, you may want to compile all 8 headers in.
> >
> > I don't see how TclClass is related to this, but it's in
> > ~tclcl/{Tcl.cc,tclcl.h}.
> >
> > - Haobo
> >
> > On Thu, 6 Apr 2000, Rudhrakumar Venkatesan wrote:
> >
> > > Hi,
> > >     I am developing a new agent for ns-2. I have 8 different packet
> > > headers for my agent. How do I specify which header to be used to the NS
> > > internal packet (packet* pkt) for a particular situation. How do I make
> > > the simulator send these headers together with the packet. I was trying
> > > top find the TclClass Class. Where can I find it. Any early help would
> > > be greatly appreciated.
> > > Regards
> > > Rudhra
> > >
> > > --
> > > *****************************************************
> > > Rudhrakumar Venkatesan
> > > Office          : Mobile Networking Laboratory, Department of ECE
> > >                       Oregon State University, Corvallis, Oregon, US
> > > 97331
> > > Residence   : 440, Nw 23rd st, #6, Corvallis, Oregon, US 97330
> > > Phone          : 541-758-4381 ( Res), 541-737-2349 (Off)
> > > Home Page : www.engr.orst.edu/~venkatru
> > > To Be or not to Be-- It's in your hands..
> > > *****************************************************
> > >
> > >
> > >
> 
> --
> *****************************************************
> Rudhrakumar Venkatesan
> Office          : Mobile Networking Laboratory, Department of ECE
>                       Oregon State University, Corvallis, Oregon, US 97331
> Residence   : 440, Nw 23rd st, #6, Corvallis, Oregon, US 97330
> Phone          : 541-758-4381 ( Res), 541-737-2349 (Off)
> Home Page : www.engr.orst.edu/~venkatru
> To Be or not to Be-- It's in your hands..
> *****************************************************
> 
> 
>