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

Re: packet::copy()



packet::copy() will not generate an unique id for each of the copies.
copy() will just create identical packets; even  the packet header is
identical. Your copy method is functioning correctly.

Rajkumar


> 
> This is a question about the packet::copy() method defined in ns2. When a
> node's replicator produce multiple copies of the original packet and
> forward each copy to downstream nodes, these copies are identical,
> excepet the uid field, because each new pkt generated will be assgined a
> unique uid. But when I look at the output trace file and track any
> of the mutlicast pkt, this seems not true, each copy of a pkt has the
> same uid as the original pkt. Has anyone notice this? and why?
> 
> tks,
> 
> shuqian