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

Re: problem with colors in nam



The problem is because although nam allows one to assign color index
higher than 256, all packet flow ids are truncated to less than 256 when
converted to color index. Therefore, the color index may not match the
big flow ids. 

Sorry I don't know if there is an easy fix.

- Haobo

On Sat, 20 Nov 1999, Guillermo Rodriguez Garcia wrote:

> Hi, nam developers
> 
> When I set the color of a flowId higher than 255 (example:
> $ns color 1000 blue) it doesn't work. I have been browsing
> nam/netmodel.cc and it seems to be OK, that is, if the
> flowId is larger than the current size of paint_[], 
> it enlarges the paint_ array and assigns the new color.
> But something must be going wrong, because packets with
> fid == 1000 are not displayed with the correct colour.
> Sometimes they default to black, other times a strange
> color is used ... if I use a lower fid (e.g. $ns color
> 200 blue) everything is OK. I need this to differentiate
> cached packets in a large-scale topology (about 1000 nodes)
> where each client has a different fid setting. Someone
> knows how can I fix nam?
> 
> (version: nam1.07)
> 
> Regards,
> G.
> -- 
> Guillermo Rodriguez Garcia
> <[email protected]>
>