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

Re: set own header fields at Packet creation



Ok, but in my opinion that's almost the same as changing Packet::alloc(), i.e.
making changes to
'standard' ns objects which I'd rather avoid if I can. You don't see a way to do it
in my added code?

Thanks for the fast reply, regards, Sjoerd

Tarik Alj wrote:

> I suggest you modify Agent::initpkt, since it's called pretty much every time a
> packet is created.
>
> file: agent.cc.
>
> Regards,
>
> Tarik.
> > X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to
> [email protected] using -f
> > Date: Tue, 01 Feb 2000 14:05:15 +0100
> > From: Sjoerd Janssen <[email protected]>
> > X-Accept-Language: en
> > MIME-Version: 1.0
> > To: ns-users <[email protected]>
> > Subject: set own header fields at Packet creation
> > Content-Transfer-Encoding: 7bit
> >
> > Hi,
> >
> > maybe someone can help me with the following:
> >
> > I've added my own header. This will not be used by a corresponding (or
> > any) agent. When an ordinary agent such as UDP creates a Packet, I want
> > the header fields of my added header to be set (e.g. to 0 or something
> > else). I could change the Packet:alloc() method in packet.h but I'd
> > rather add this functionality in my own (added) code. How should I do
> > this?
> >
> > Regards, Sjoerd Janssen
> >
> >
> >
> >