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

Re: [ns] addr() in Agent.cc





On Sun, 14 Oct 2001, Lloyd Wood wrote:

> On Sat, 13 Oct 2001, Ya Xu wrote:
> 
> > broadcast address is -1
> 
> Why not zero, to better approximate broadcast in Real Networks (not
> tm)?

btw, the broadcast addr in the real world is normally all 1s which is
-1. 0 is used for network address

-Ya

> 
> L.
> 
> > On Sat, 13 Oct 2001, boo sunn wrote:
> > 
> > > hi:
> > > 
> > > I use printf() to trace addr() in Agent::recv()
> > > method, but there are sometime that I get -1, what is
> > > wrong with it? it seems to me that the node number
> > > cannot be -1?
> > > 
> > > Thanks 
> > > 
> > > bo sun
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > > 
> > 
> > 
> 
> <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
>