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

Re: what are mask_ and shift_



Nick,

The variables you mentioned, shift_ and mask_, are for two reasons:

1) NS currently stores port number and address into one 32-bit
   variable, of which the least significant eight bits are for port.
   The rest is for node address.

2) If ns is running in hierarchical mode, then it needs a set of
   shift and mask for each level of hierarchy.

Nader


>>> "Nick" == Nick A Fikouras <[email protected]> writes:

Nick> Hi all, I' ve seen this message appear several times in the list
Nick> but nobody has answered it yet. In class Classifier, there two
Nick> variables mask_ and shift_, what is their use?


Nick> Thanks in advance,

Nick> nick